Skip to content

Commit

Permalink
Update legend.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd authored Dec 6, 2024
1 parent c75ca72 commit 9a049b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const Legend = function Legend(options = {}) {
document.getElementById(toolsCmp.getId()).classList.add('hidden');
} else {
const nrOverlays = overlaysCmp.readOverlays().length;
if(nrOverlays > 0) {
if (nrOverlays > 0) {
document.getElementById(overlaysCmp.getId()).classList.remove('hidden');
}
document.getElementById(visibleOverlaysCmp.getId()).classList.add('hidden');
Expand Down

0 comments on commit 9a049b0

Please sign in to comment.