feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -145,10 +145,16 @@ export function Manage({ conflict, bodyshop, partsManagementOnly, isDarkMode, cu
}, [t]);
// This is a required safety check to prevent parts management only users from accessing /manage based routes
useEffect(() => {
if (partsManagementOnly && !import.meta.env.DEV) {
// This NEEDS to be done this way, DO NOT use the react router, it will cause a ton of side effects
window.location = "/parts";
}
}, [partsManagementOnly]);
// Prevent rendering if redirecting
if (partsManagementOnly && !import.meta.env.DEV) {
// This NEEDS to be done this way, DO NOT use the react router, it will cause a ton of side effects
window.location = "/parts";
return null; // Prevent further rendering
return null;
}
const AppRouteTable = (