Skip to content

Commit

Permalink
Fix Map layers tab when we have cleared the analysis selection (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 authored Jun 19, 2024
1 parent 1c12136 commit acb10fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function BiodiversitySidebarCard(props) {
[RARITY]: {},
});
const [selectedLayer, setSelectedLayer] = useState(
activeLayers[activeLayers.length - 1].title
activeLayers?.[activeLayers.length - 1]?.title
);

const [showCard, setShowCard] = useState(true);
Expand Down

0 comments on commit acb10fe

Please sign in to comment.