fix: reset value correctly

This commit is contained in:
GyDi
2022-02-13 19:40:31 +08:00
parent 5b779b4f14
commit 2dfd725ee0
2 changed files with 9 additions and 2 deletions

View File

@@ -104,8 +104,8 @@ const ProfilePage = () => {
try {
await newProfile(name, desc);
mutate("getProfiles");
setDialogOpen(false);
mutate("getProfiles");
} catch (err: any) {
err && Notice.error(err.toString());
} finally {