Skip to content

Commit

Permalink
Make it so the sidebar is opened by default
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed May 12, 2023
1 parent d1b3699 commit 97277c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ function PrivateRoutes() {

function Routes() {
const [isSideBarOpen, setIsSideBarOpen] = useState(
localStorage.getItem('isSideBarOpen') === 'true',
localStorage.getItem('isSideBarOpen') === null ||
localStorage.getItem('isSideBarOpen') === 'true',
);
const history = useHistory();
const location = useLocation();
Expand Down

0 comments on commit 97277c3

Please sign in to comment.