feature/IO-3255-simplified-parts-management - Fix top level breadcrumbs, up deps
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user