mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13: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:
@@ -216,6 +216,8 @@ export default function AdminSettings() {
|
||||
/>
|
||||
);
|
||||
}
|
||||
// Unknown section — fallback to branding
|
||||
setActiveSection('branding');
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user