feature/IO-3255-simplified-parts-management - Fix top level breadcrumbs, up deps

This commit is contained in:
Dave Richer
2025-08-06 13:34:00 -04:00
parent 567002236d
commit 84795b2048
6 changed files with 29 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ export function App({ bodyshop, checkUserSession, currentUser, online, setOnline
useEffect(() => {
const pathname = window.location.pathname;
const isParts = pathname.startsWith("/parts/") && bodyshop?.external_shop_id;
const isParts = pathname === "/parts" || pathname.startsWith("/parts/") || bodyshop?.external_shop_id;
setIsPartsEntry(isParts);
}, [setIsPartsEntry, bodyshop?.external_shop_id]);