perf: Improve config validation error messages and handling

This commit is contained in:
wonfen
2025-02-25 13:47:29 +08:00
parent 709a20ed7b
commit a5acdc04e3
11 changed files with 202 additions and 195 deletions

View File

@@ -174,11 +174,11 @@ const ProfilePage = () => {
}, 100);
try {
await patchProfiles({ current: profile });
const success = await patchProfiles({ current: profile });
await mutateLogs();
closeAllConnections();
await activateSelected();
if (notifySuccess) {
if (notifySuccess && success) {
Notice.success(t("Profile Switched"), 1000);
}
} catch (err: any) {