diff --git a/packages/common/business_components/src/ui/map/GisTree.js b/packages/common/business_components/src/ui/map/GisTree.js index 38077c00a..549f5905a 100644 --- a/packages/common/business_components/src/ui/map/GisTree.js +++ b/packages/common/business_components/src/ui/map/GisTree.js @@ -538,6 +538,8 @@ export default React.memo(function GisTree({ (child) => child.parent === node.id && child.data.exprsYn === "Y" ); + const showLayerActionButton = layerIconVisible?.(node); + const showLayerActionIcon = depth > 0 && imageVisible; const inlineLayerSetting = inlineLayerSettingView?.(node); @@ -569,8 +571,24 @@ export default React.memo(function GisTree({ {node.text} - {((depth > 0 && imageVisible) || layerIconVisible?.(node)) && ( - + {showLayerActionButton && ( + + )} + {!showLayerActionButton && showLayerActionIcon && ( +