From 63af59f0f3cac553dfb6181b2d3460079e38f7da Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Sat, 8 Aug 2026 14:20:28 +0330 Subject: [PATCH] Fix super-admin build after removing edit color/locale state. Table theme handlers still referenced deleted edit modal setters. Co-authored-by: Cursor --- apps/super-admin/src/pages/BusinessesPage.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/super-admin/src/pages/BusinessesPage.tsx b/apps/super-admin/src/pages/BusinessesPage.tsx index 266e01b..b415c5d 100644 --- a/apps/super-admin/src/pages/BusinessesPage.tsx +++ b/apps/super-admin/src/pages/BusinessesPage.tsx @@ -398,10 +398,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditPrimaryColor(primaryColor) - } - try { await updateBusinessPrimaryColor(b.id, primaryColor) showToast(`Theme updated for "${b.name}".`, 'success') @@ -416,10 +412,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditPrimaryColor(currentColor) - } - showToast( err instanceof ApiError ? err.message : 'Unable to update theme.', 'error', @@ -446,10 +438,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditDefaultLocale(defaultLocale) - } - try { await updateBusinessDefaultLocale(b.id, defaultLocale) showToast(`Default language updated for "${b.name}".`, 'success') @@ -464,10 +452,6 @@ export function BusinessesPage() { } }) - if (editBusiness?.id === b.id) { - setEditDefaultLocale(currentLocale) - } - showToast( err instanceof ApiError ? err.message : 'Unable to update default language.', 'error',