diff --git a/src/jpl/dijit/GranulesController.js b/src/jpl/dijit/GranulesController.js index 2b646137..85e2f137 100644 --- a/src/jpl/dijit/GranulesController.js +++ b/src/jpl/dijit/GranulesController.js @@ -252,8 +252,6 @@ define([ if(obj["Granule-Footprint"]){ on(btn, "click", function(evt) { - console.log('footprint click') - console.log('obj:', obj) obj.footprint = !obj.footprint; _context.gridStore.put(obj) _context.updateStateStoreObj(obj); @@ -751,118 +749,44 @@ define([ response.items.map(function(x) { GranuleMetadata.convertFootprintAndImageFromCMR(x); + var currentGridStore = _context.gridStore.query() var currentStateStore = _context.stateStore.query() var relevantStateStoreObject = {} + var replacementGridGranuleAdded = false var granule_id = x["meta"]["concept-id"]; for(var i=0; i<_context.stateStore.query().length; i++) { + var currentGridStoreContainsCurrentStateGranule = false + for(var j=0; j