修复Maximum call stack size exceeded的错误,不使用 ... 数组展开符;删除多余的注释和引用

This commit is contained in:
JIANG
2025-12-19 11:55:33 +08:00
parent ac966242e7
commit 120cfc2cb3
2 changed files with 12 additions and 10 deletions

View File

@@ -359,7 +359,9 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
setJunctionText(property);
setShowJunctionTextLayer(styleConfig.showLabels);
setApplyJunctionStyle(true);
setContourLayerAvailable && setContourLayerAvailable(true);
if (property === "pressure" && setContourLayerAvailable) {
setContourLayerAvailable(true);
}
saveLayerStyle(layerId);
open?.({
type: "success",