Skip to content

Commit

Permalink
[Bug] fix arc layer configurator render crash (#1490)
Browse files Browse the repository at this point in the history
Signed-off-by: Shan He <heshan0131@gmail.com>
  • Loading branch information
heshan0131 committed May 21, 2021
1 parent b24cc57 commit d786d0f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/side-panel/layer-panel/layer-configurator.js
Expand Up @@ -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>
);
}
Expand Down

0 comments on commit d786d0f

Please sign in to comment.