From c3531bbbf261558e43f1693e9e20379d5a9131c8 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Mon, 9 Nov 2026 14:23:11 +0800 Subject: [PATCH] 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. --- src/pages/profiles.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/pages/profiles.tsx b/src/pages/profiles.tsx index 831fa67e3..c46bdf2df 100644 --- a/src/pages/profiles.tsx +++ b/src/pages/profiles.tsx @@ -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)