Skip to content

Commit

Permalink
Fixup: Hide ViewfinderView if there is not Google Maps API key
Browse files Browse the repository at this point in the history
  • Loading branch information
ianguerin committed Mar 21, 2024
1 parent 29735d5 commit 8186f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/views/maps/ToolbarView.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ define(
sectionEl.sectionView.focusInput();
},
isVisible(model) {
return model.get("showViewfinder");
return MetacatUI.mapKey && model.get("showViewfinder");
},
},
{
Expand Down

0 comments on commit 8186f78

Please sign in to comment.