mirror of
https://git.meshkee.com/Meshkee/dashboards.git
synced 2026-08-11 22:30:58 +04:30
Fix super-admin build after removing edit color/locale state.
Table theme handlers still referenced deleted edit modal setters. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
f4a087089e
commit
63af59f0f3
@@ -398,10 +398,6 @@ export function BusinessesPage() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (editBusiness?.id === b.id) {
|
|
||||||
setEditPrimaryColor(primaryColor)
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await updateBusinessPrimaryColor(b.id, primaryColor)
|
await updateBusinessPrimaryColor(b.id, primaryColor)
|
||||||
showToast(`Theme updated for "${b.name}".`, 'success')
|
showToast(`Theme updated for "${b.name}".`, 'success')
|
||||||
@@ -416,10 +412,6 @@ export function BusinessesPage() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (editBusiness?.id === b.id) {
|
|
||||||
setEditPrimaryColor(currentColor)
|
|
||||||
}
|
|
||||||
|
|
||||||
showToast(
|
showToast(
|
||||||
err instanceof ApiError ? err.message : 'Unable to update theme.',
|
err instanceof ApiError ? err.message : 'Unable to update theme.',
|
||||||
'error',
|
'error',
|
||||||
@@ -446,10 +438,6 @@ export function BusinessesPage() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (editBusiness?.id === b.id) {
|
|
||||||
setEditDefaultLocale(defaultLocale)
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await updateBusinessDefaultLocale(b.id, defaultLocale)
|
await updateBusinessDefaultLocale(b.id, defaultLocale)
|
||||||
showToast(`Default language updated for "${b.name}".`, 'success')
|
showToast(`Default language updated for "${b.name}".`, 'success')
|
||||||
@@ -464,10 +452,6 @@ export function BusinessesPage() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (editBusiness?.id === b.id) {
|
|
||||||
setEditDefaultLocale(currentLocale)
|
|
||||||
}
|
|
||||||
|
|
||||||
showToast(
|
showToast(
|
||||||
err instanceof ApiError ? err.message : 'Unable to update default language.',
|
err instanceof ApiError ? err.message : 'Unable to update default language.',
|
||||||
'error',
|
'error',
|
||||||
|
|||||||
Reference in New Issue
Block a user