fix(nav): a module's page is hidden when the module is not on the server at all

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
CorfireanandClaude Sonnet 5.5 committed 2026-10-03 05:18:14 +05:00
1 parent 1181b920d3
commit 375be1b2c5
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ export function Shell(props: {
const reloadModules = useCallback(() => {
void api
.modulesList(props.activeId)
.then((list) => setHiddenPages(list.filter((m) => m.page && m.installed && m.switchable && !m.enabled).map((m) => m.page as string)))
.then((list) => setHiddenPages(list.filter((m) => m.page && (!m.installed || (m.switchable && !m.enabled))).map((m) => m.page as string)))
.catch(() => setHiddenPages([]));
}, [props.activeId]);
useEffect(() => {