Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Nov 1, 2024
1 parent 4ba92fc commit c91a473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const SideBarLayout: FC<ISideBarLayout> = ({
//and then saved in the layout
useEffect(() => {
setLocation(location);
}, [location.url]);
}, [location?.url, location?.hash]);

return (
<MediaContextProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const SideBarAside: FC<
};

useEffect(() => {
handleSetAsideExpanded(!!location.hash);
}, [location.hash]);
handleSetAsideExpanded(!!location?.hash);
}, [location?.hash]);

return (
<>
Expand Down

0 comments on commit c91a473

Please sign in to comment.