Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-554: Fixed bug where metadata was appearing in the granule level when it should be at the product level

Mike McGanna8fd6b035305
diff --git a/src/js/Worldview/DataDownload/DownloadListPanel.js b/src/js/Worldview/DataDownload/DownloadListPanel.js
index 84f5e9d1f..05622331b 100644
--- a/src/js/Worldview/DataDownload/DownloadListPanel.js
+++ b/src/js/Worldview/DataDownload/DownloadListPanel.js
@@ -118,7 +118,7 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
var granule = product.granules[0];
$.each(granule.links, function(index, link) {
var count = product.counts[link.href];
- if ( count === product.granules.length ) {
+ if ( count % product.granules.length === 0 ) {
product.links.push(reformatLink(link));
}
});
@@ -131,7 +131,7 @@ Worldview.DataDownload.DownloadListPanel = function(config, model) {
$.each(granule.links, function(index, link) {
// Skip this link if now at the product level
var count = product.counts[link.href];
- if ( count === product.granules.length ) {
+ if ( count % product.granules.length === 0 ) {
return;
}
// Skip browse images per Kevin's request