Переглянути джерело

fix: close dialog after save

GyDi 3 роки тому
батько
коміт
2ad771e7fd
1 змінених файлів з 1 додано та 0 видалено
  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());
     }