Skip to content

Commit

Permalink
fixed check for hurricane layers when dragging layers in layers list
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed Sep 16, 2024
1 parent 7c9871f commit f21edf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/trays/layers/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const LayersList = () => {
});

// turn on/off any hurricane layers
if (hurrLayers) {
if (hurrLayers && (hurrLayers.length > 0)) {
newLayerList[0].properties.met_class === "tropical" ?
hurrLayers[0].state.visible = true
:
Expand Down

0 comments on commit f21edf6

Please sign in to comment.