Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Jan 14, 2025
1 parent 3413cff commit 27d68c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/app/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client"
import React from 'react';
import DataPanels from './DataPanels';
import {Box, Flex, Heading, IconButton} from '@radix-ui/themes';
Expand Down Expand Up @@ -29,7 +30,7 @@ const HandleIconButton = () => {

export default function SidebarComponent() {
const document_id = useMapStore(store => store.mapDocument?.document_id);
const [width, setWidth] = React.useState(window.innerWidth * 0.25);
const [width, setWidth] = React.useState(typeof window !== 'undefined' ? window.innerWidth * 0.25 : 300);
const [hovered, setHovered] = React.useState(false);
return (
<Box
Expand Down

0 comments on commit 27d68c1

Please sign in to comment.