diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-21 00:32:25 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-21 00:32:25 +0000 |
| commit | 8f14e9f50fae51e09fdfb529af389a046b4672f6 (patch) | |
| tree | 3043bc29fe0c3746964e9c94fa4e61228183565f /apps/web/components/dashboard/sidebar | |
| parent | 23941ff79ac201a233bda5e2d03bd4f76f52c8fd (diff) | |
| download | karakeep-8f14e9f50fae51e09fdfb529af389a046b4672f6.tar.zst | |
fix: Reset add list form form on submission
Diffstat (limited to 'apps/web/components/dashboard/sidebar')
| -rw-r--r-- | apps/web/components/dashboard/sidebar/NewListModal.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
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") { |
