Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

allow no products

Mike McGann005ab8d533af
diff --git a/web/js/modules/data/selectors.js b/web/js/modules/data/selectors.js
index 6f2d8f00f..e3a431287 100644
--- a/web/js/modules/data/selectors.js
+++ b/web/js/modules/data/selectors.js
@@ -43,6 +43,11 @@ export function getDataSelectionSize(selectedGranules) {
}
export function groupByProducts(config, dataProducts) {
let products = {};
+ // If no products have been defined in the configuration, return
+ // the empty object.
+ if (!config.products) {
+ return products;
+ }
for (let layer of dataProducts) {
// If products is a list, use it. If a single item, convert to a list.
// If no products are defined, add it to the no product group.