mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 20:02:20 +08:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user