refactor(profiles): drop duplicate reactivation after profile delete

delete_profile already forces a Core update with the planned profiles when
the current or last profile is removed, and restores state on rejection,
so the frontend enhance_profiles call repeated the same reload.
This commit is contained in:
Tunglies
2026-11-09 14:23:11 +08:00
parent 8660a11c2b
commit c3531bbbf2
-7
View File
@@ -521,9 +521,6 @@ const ProfilePage = () => {
})
mutateProfiles()
mutateLogs()
if (current) {
await onEnhance(false)
}
} catch (err: any) {
showNotice.error(err)
} finally {
@@ -654,10 +651,6 @@ const ProfilePage = () => {
await mutateProfiles()
await mutateLogs()
if (currentActivating.length > 0) {
await onEnhance(false)
}
setSelectedProfiles(new Set())
setBatchMode(false)