diff --git a/src/components/trays/layers/list.js b/src/components/trays/layers/list.js index f87d71f..dc4bb42 100644 --- a/src/components/trays/layers/list.js +++ b/src/components/trays/layers/list.js @@ -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 :