Skip to content

Commit

Permalink
son't show granule alert if zoom alert is showing
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps committed Dec 13, 2023
1 parent e28053b commit 8ba195c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/js/containers/sidebar/layer-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,18 @@ function LayerRow (props) {
const olderEntries = olderGranules?.feed?.entry || [];
const newerEntries = newerGranules?.feed?.entry || [];
const granules = [...olderEntries, ...newerEntries];
if (!granules.length) {
if (zot?.underZoomValue) {
setShowZoomAlert(true);
} else {
setShowZoomAlert(false);
}
if (!granules.length && !zot?.underZoomValue) {
setActiveZot({ hasGranules: false });
setShowGranuleAlert(true);
} else {
setActiveZot(zot);
setShowGranuleAlert(false);
}
if (zot?.underZoomValue) {
setShowZoomAlert(true);
} else {
setShowZoomAlert(false);
}
if (!granules.length || zot?.underZoomValue > 0) {
setDisabled(true);
} else {
Expand Down

0 comments on commit 8ba195c

Please sign in to comment.