+ sidePanelIsCollapsed, isTransitioning, currentSideWidth, currentRoute, setCurrentRouteUuid}: MainPanelRootProps) =>{
+
+ useEffect(() => {
+ const splitRoute = currentRoute.split('/');
+ const uuid = splitRoute[splitRoute.length - 1];
+ if(Object.values(Routes).includes(`/${uuid}`) === false) {
+ setCurrentRouteUuid(uuid);
+ }
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [currentRoute]);
+