@@ -279,10 +279,6 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
279
279
const getCheckedKeys = ( ) => {
280
280
return checkedKeys ;
281
281
}
282
-
283
- useEffect ( ( ) => {
284
- console . log ( 'onChange' , actionValue ) ;
285
- } , [ actionValue ] )
286
282
287
283
const getActionValue = ( ) => {
288
284
return actionValue ;
@@ -350,14 +346,16 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
350
346
< div style = { { marginBottom :"10px" } } >
351
347
{ trans ( "leftPanel.activatelayers" ) }
352
348
< Switch
353
- style = { { margin : "0px 10px" } }
354
- size = "small"
355
- checked = { editorState . collisionStatus == "true" }
356
- disabled = { false }
357
- onChange = { ( value : any ) => {
358
- toggleCollisionStatus ( value == true ? "true" : "false" ) ;
359
- editorState . setCollisionStatus ( value == true ? "true" : "false" ) ;
360
- } } /> </ div >
349
+ style = { { margin : "0px 10px" } }
350
+ size = "small"
351
+ checked = { editorState . collisionStatus == "true" }
352
+ disabled = { false }
353
+ onChange = { ( value : any ) => {
354
+ toggleCollisionStatus ( value == true ? "true" : "false" ) ;
355
+ editorState . setCollisionStatus ( value == true ? "true" : "false" ) ;
356
+ } }
357
+ />
358
+ </ div >
361
359
362
360
< DirectoryTreeStyle
363
361
checkable = { true }
@@ -376,7 +374,8 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
376
374
switcherIcon = { ( props : any ) => props . expanded ? < FoldedIcon /> : < UnfoldIcon /> }
377
375
expandedKeys = { expandedKeys }
378
376
onExpand = { ( keys ) => setExpandedKeys ( keys ) }
379
- titleRender = { ( nodeData ) => getTreeNode ( nodeData as NodeItem , uiCompInfos ) } />
377
+ titleRender = { ( nodeData ) => getTreeNode ( nodeData as NodeItem , uiCompInfos ) }
378
+ />
380
379
381
380
< div style = { { margin :"10px 0px" } } >
382
381
< Flex gap = "small" vertical >
@@ -400,7 +399,6 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
400
399
</ CustomDropdown >
401
400
</ Flex >
402
401
</ div >
403
-
404
402
</ div >
405
403
406
404
< Divider />
@@ -413,7 +411,7 @@ export const LeftLayersContent = (props: LeftLayersContentProps) => {
413
411
return ;
414
412
}
415
413
return getTreeUI ( ) ;
416
- } , [ editorState , uiCollapseClick , expandedKeys , componentTreeData ] ) ;
414
+ } , [ editorState , uiCollapseClick , expandedKeys , componentTreeData , actionValue ] ) ;
417
415
418
416
const layerControlContent = (
419
417
< ScrollBar >
0 commit comments