checkpoint

This commit is contained in:
rizky 2024-10-08 05:52:35 -07:00
parent 4ca0e8db3a
commit 16789717cf
2 changed files with 6 additions and 1 deletions

View File

@ -119,6 +119,12 @@ export const TypeDropdown: FC<{
reload(); reload();
}, []); }, []);
useEffect(() => {
if (fm.save_status === 'saved') {
reload();
}
}, [fm.save_status]);
let value = let value =
typeof arg.opt_get_value === "function" typeof arg.opt_get_value === "function"
? arg.opt_get_value({ ? arg.opt_get_value({

View File

@ -12,7 +12,6 @@ export const toast = {
toasting: [] as any[], toasting: [] as any[],
dismiss: () => { dismiss: () => {
if (!timer.timeout) { if (!timer.timeout) {
console.log(toast.toasting);
if (toast.toasting.length > 0) { if (toast.toasting.length > 0) {
for (const t of toast.toasting) { for (const t of toast.toasting) {
sonner.dismiss(t.id); sonner.dismiss(t.id);