Skip to content

Commit

Permalink
/deploy sit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed Aug 22, 2024
1 parent bcc507d commit 55c4a2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/jpl/dijit/GranulesController.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,20 +392,21 @@ define([
var granuleObjs = selectedGranules.map(function(x) {
var objectData = _context.granuleGrid.row(x).data
if(objectData.footprint) {
granuleObjNames.push(objectData["Granule-Name"])
objectData.footprint = false
_context.gridStore.put(objectData)
_context.updateStateStoreObj(objectData);
_context.toggleFootprintDisplay(objectData);
return objectData;
} else {
return
return null
}
}).filter(function(x) {
x !== null
})
// deactivate granules from addedFootprints
Object.values(_context.addedFootprintStore).forEach(function(x) {
if(!granuleObjNames.includes(x["Granule-Name"])) {
if(granuleObjNames.includes(x["Granule-Name"])) {
granuleObjs.push(x);
}
})
Expand Down Expand Up @@ -463,11 +464,11 @@ define([
var granuleObjs = selectedGranules.map(function(x) {
var objectData = _context.granuleGrid.row(x).data
if(objectData.preview) {
granuleObjNames.push(objectData["Granule-Name"]);
objectData.preview = false
_context.gridStore.put(objectData)
_context.updateStateStoreObj(objectData);
_context.togglePreviewDisplay(objectData);
granuleObjNames.push(objectData["Granule-Name"]);
return objectData;
}else {
return null
Expand All @@ -477,7 +478,7 @@ define([
})
// deactivate granules from addedPreviews
Object.values(_context.addedPreviewStore).forEach(function(x) {
if(!granuleObjNames.includes(x["Granule-Name"])) {
if(granuleObjNames.includes(x["Granule-Name"])) {
granuleObjs.push(x);
}
})
Expand Down

0 comments on commit 55c4a2f

Please sign in to comment.