Skip to content

Commit

Permalink
fix unrelated zots (#4885)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps authored Dec 22, 2023
1 parent 1d38456 commit e896b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/containers/sidebar/zot.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Zot (props) {
} else if (underZoomValue > 0) {
className = 'zot underzoom';
tooltipString += `Layer is underzoomed by ${zot.underZoomValue.toString()}x its minimum zoom level; zoom in to see imagery <br/>`;
} else if (!hasGranules) {
} else if (Object.hasOwn(zot, 'hasGranules') && !hasGranules) {
className = 'zot no-granules';
tooltipString += 'No visible imagery on this date and/or location. <br/> Try moving the map or select a different date in the layer\'s settings. <br/>';
}
Expand Down

0 comments on commit e896b36

Please sign in to comment.