Phase 0: Fix AppSidebar useEffect for module settings loading
This commit is contained in:
@@ -282,6 +282,14 @@ const AppSidebar: React.FC = () => {
|
||||
: menuSections;
|
||||
}, [isAwsAdminAccount, menuSections, adminSection]);
|
||||
|
||||
// Load module enable settings on mount
|
||||
useEffect(() => {
|
||||
const { loadModuleEnableSettings } = useSettingsStore.getState();
|
||||
if (!moduleEnableSettings) {
|
||||
loadModuleEnableSettings();
|
||||
}
|
||||
}, [moduleEnableSettings]);
|
||||
|
||||
useEffect(() => {
|
||||
const currentPath = location.pathname;
|
||||
let foundMatch = false;
|
||||
|
||||
Reference in New Issue
Block a user