Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] fix arc layer configurator render crash (#1490)

Shan Hed786d0f3c4b8
diff --git a/src/components/side-panel/layer-panel/layer-configurator.js b/src/components/side-panel/layer-panel/layer-configurator.js
index 240a54a8a..ed85b4725 100644
--- a/src/components/side-panel/layer-panel/layer-configurator.js
+++ b/src/components/side-panel/layer-panel/layer-configurator.js
@@ -543,12 +543,14 @@ export default function LayerConfiguratorFactory(
</LayerConfigGroup>
{/* elevation scale */}
- <LayerConfigGroup label="layerVisConfigs.elevationScale" collapsible>
- <VisConfigSlider
- {...layer.visConfigSettings.elevationScale}
- {...visConfiguratorProps}
- />
- </LayerConfigGroup>
+ {layer.visConfigSettings.elevationScale ? (
+ <LayerConfigGroup label="layerVisConfigs.elevationScale" collapsible>
+ <VisConfigSlider
+ {...layer.visConfigSettings.elevationScale}
+ {...visConfiguratorProps}
+ />
+ </LayerConfigGroup>
+ ) : null}
</StyledLayerVisualConfigurator>
);
}