fix: reset value correctly

This commit is contained in:
GyDi committed 2022-02-13 19:40:31 +08:00
1 parent 5b1fc0e6c0
commit d599be7e7c
2 files changed
+9 -2

No files matched your search

+1 -1
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 {