From 8f14e9f50fae51e09fdfb529af389a046b4672f6 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Thu, 21 Mar 2024 00:32:25 +0000 Subject: fix: Reset add list form form on submission --- apps/web/components/dashboard/sidebar/NewListModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/web/components/dashboard/sidebar') diff --git a/apps/web/components/dashboard/sidebar/NewListModal.tsx b/apps/web/components/dashboard/sidebar/NewListModal.tsx index 31c35d6c..5169fbb5 100644 --- a/apps/web/components/dashboard/sidebar/NewListModal.tsx +++ b/apps/web/components/dashboard/sidebar/NewListModal.tsx @@ -51,7 +51,7 @@ export default function NewListModal() { resolver: zodResolver(formSchema), defaultValues: { name: "", - icon: "💡", + icon: "🚀", }, }); @@ -64,6 +64,7 @@ export default function NewListModal() { }); listsInvalidationFunction(); setOpen(false); + form.reset(); }, onError: (e) => { if (e.data?.code == "BAD_REQUEST") { -- cgit v1.2.3-70-g09d2