Sfoglia il codice sorgente

fix: close dialog after save

GyDi 3 anni fa
parent
commit
2ad771e7fd
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/components/profile/file-editor.tsx

+ 1 - 0
src/components/profile/file-editor.tsx

@@ -71,6 +71,7 @@ const FileEditor = (props: Props) => {
     try {
       await saveProfileFile(uid, value);
       onChange?.();
+      onClose();
     } catch (err: any) {
       Notice.error(err.message || err.toString());
     }