Skip to content

Commit

Permalink
CLMS-3294 (bug): go to extent works correctly for new hotspot filter …
Browse files Browse the repository at this point in the history
…requests after bookmarking an unfiltered hotspot layer
  • Loading branch information
ujbolivar committed Jun 6, 2024
1 parent e984098 commit 3c9570c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/MapViewer/HotspotWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ class HotspotWidget extends React.Component {
this.layers[key] = layersToAdd[key];
this.layers[key].visible = true;
});
if (bookmarkHotspotFilter === null) {
if (
bookmarkHotspotFilter === null ||
Object.keys(bookmarkHotspotFilter?.filteredLayers).length === 0
) {
this.setBBoxCoordinates(this.dataBBox);
}
//set sessionStorage value to keep the widget open
Expand Down

0 comments on commit 3c9570c

Please sign in to comment.