Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WV-2983: fix unrelated zots #4885

Merged
merged 1 commit into from
Dec 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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