From 2ad771e7fdad189570ae921a02c2e994d6ddca74 Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Mon, 28 Mar 2022 01:09:34 +0800
Subject: [PATCH] fix: close dialog after save

---
 src/components/profile/file-editor.tsx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/components/profile/file-editor.tsx b/src/components/profile/file-editor.tsx
index 69c21a9..2b36b62 100644
--- a/src/components/profile/file-editor.tsx
+++ b/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());
     }
-- 
GitLab