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