File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
frontend/src/components/wds_topology Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -73,17 +73,10 @@ export const ZoomControls = memo<ZoomControlsProps>(
7373 const [ zoomLevel , setZoomLevel ] = useState < number > ( 120 ) ;
7474 const [ presetMenuAnchor , setPresetMenuAnchor ] = useState < null | HTMLElement > ( null ) ;
7575 const [ hoveredButton , setHoveredButton ] = useState < string | null > ( null ) ;
76- const [ showControls , setShowControls ] = useState < boolean > ( ( ) => {
77- const saved = localStorage . getItem ( 'wds-show-controls' ) ;
78- return saved ? JSON . parse ( saved ) : false ; // Default to false (controls hidden)
79- } ) ;
76+ const [ showControls , setShowControls ] = useState < boolean > ( false ) ; // Controls hidden by default
8077
8178 const toggleControls = ( ) => {
82- setShowControls ( prev => {
83- const newValue = ! prev ;
84- localStorage . setItem ( 'wds-show-controls' , JSON . stringify ( newValue ) ) ;
85- return newValue ;
86- } ) ;
79+ setShowControls ( prev => ! prev ) ;
8780 } ;
8881 const { setZoom } = useZoomStore ( ) ;
8982 const { edgeType, setEdgeType } = useEdgeTypeStore ( ) ;
You can’t perform that action at this time.
0 commit comments