From 16789717cf9ad71c601ee8e32b7c9e75592327cd Mon Sep 17 00:00:00 2001 From: rizky Date: Tue, 8 Oct 2024 05:52:35 -0700 Subject: [PATCH] checkpoint --- comps/form/field/type/TypeDropdown.tsx | 6 ++++++ comps/ui/toast.tsx | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/comps/form/field/type/TypeDropdown.tsx b/comps/form/field/type/TypeDropdown.tsx index 75e7c2f..2248ff3 100755 --- a/comps/form/field/type/TypeDropdown.tsx +++ b/comps/form/field/type/TypeDropdown.tsx @@ -119,6 +119,12 @@ export const TypeDropdown: FC<{ reload(); }, []); + useEffect(() => { + if (fm.save_status === 'saved') { + reload(); + } + }, [fm.save_status]); + let value = typeof arg.opt_get_value === "function" ? arg.opt_get_value({ diff --git a/comps/ui/toast.tsx b/comps/ui/toast.tsx index 01bbb56..5d61fd7 100755 --- a/comps/ui/toast.tsx +++ b/comps/ui/toast.tsx @@ -12,7 +12,6 @@ export const toast = { toasting: [] as any[], dismiss: () => { if (!timer.timeout) { - console.log(toast.toasting); if (toast.toasting.length > 0) { for (const t of toast.toasting) { sonner.dismiss(t.id);