Explorar o código

fix: close dialog after save

GyDi %!s(int64=3) %!d(string=hai) anos
pai
achega
2ad771e7fd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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());
     }