mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: whitespace search guard and unknown section fallback
- SettingsTab: use searchQuery.trim() instead of searchQuery to prevent whitespace-only input from triggering empty search results view - AdminSettings: fallback to branding when activeSection is unknown instead of rendering blank content area
This commit is contained in:
@@ -44,7 +44,7 @@ export function SettingsTab({
|
||||
});
|
||||
|
||||
// Search mode: flat list of filtered results
|
||||
if (searchQuery) {
|
||||
if (searchQuery.trim()) {
|
||||
if (filteredSettings.length === 0) {
|
||||
return (
|
||||
<div className="rounded-xl border border-dark-700/30 bg-dark-800/30 p-12 text-center">
|
||||
|
||||
Reference in New Issue
Block a user