Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-3550 Additional Charting Error Handling 4 (#5818)

christof-wittreichf43fc9645869
diff --git a/web/js/components/sidebar/charting-mode-options.js b/web/js/components/sidebar/charting-mode-options.js
index 12bd382a6..d65d04eed 100644
--- a/web/js/components/sidebar/charting-mode-options.js
+++ b/web/js/components/sidebar/charting-mode-options.js
@@ -300,7 +300,7 @@ function ChartingModeOptions(props) {
const response = await fetch(simpleStatsURI, requestOptions);
const data = await response.text();
// This is the response when the imageStat server fails
- if (!data) {
+ if (!data || data === 'null') {
return {
ok: false,
error: NO_DATA_ERROR_MESSAGE,