Skip to content

Commit

Permalink
Merge pull request #240 from RENCI/issue239
Browse files Browse the repository at this point in the history
fixed check for hurricane layers when dragging layers in layers list
  • Loading branch information
PhillipsOwen authored Sep 16, 2024
2 parents 7c9871f + f21edf6 commit 01665c9
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 01665c9

Please sign in to comment.