From 5842ca2dfc3e674e7db9fd0cb7d41e8789755f6a Mon Sep 17 00:00:00 2001 From: "IGNY8 VPS (Salman)" Date: Sun, 16 Nov 2025 18:48:45 +0000 Subject: [PATCH] Phase 0: Fix AppSidebar useEffect for module settings loading --- frontend/src/layout/AppSidebar.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/layout/AppSidebar.tsx b/frontend/src/layout/AppSidebar.tsx index 549fe0c3..c2fadeb4 100644 --- a/frontend/src/layout/AppSidebar.tsx +++ b/frontend/src/layout/AppSidebar.tsx @@ -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;