diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae3d117b..7ce5d7eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,10 +188,6 @@ jobs: run: | npm install npm run build - - - name: Make Config Files - run: | - cat ./configs/hitideConfig-${{ env.THE_ENV }}.js > ./dist/hitideConfig.js ## Deployment - name: Deploy Env Override @@ -206,6 +202,10 @@ jobs: echo "THE_ENV=${override_env}" >> $GITHUB_ENV echo "TARGET_ENV_UPPERCASE=${override_env_upper}" >> $GITHUB_ENV + - name: Make Config Files + run: | + cat ./configs/hitideConfig-${{ env.THE_ENV }}.js > ./dist/hitideConfig.js + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c76ab50..119947d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - issue-48: Fixed collection resolution error handling - issue-49: Removed unused Docker and Jenkins folders/files from HiTIDE-UI - issue-52: Fixed missing thumbnail placeholder +- issue-44: Fixed footprints and previews stay on map when not intended ## [4.16.2] diff --git a/src/jpl/dijit/GranulesController.js b/src/jpl/dijit/GranulesController.js index 220c9c86..e3bcd8b8 100644 --- a/src/jpl/dijit/GranulesController.js +++ b/src/jpl/dijit/GranulesController.js @@ -746,6 +746,7 @@ define([ postGranulesFetch: function(response) { this.availableGranules = response.hits; var _context = this; + response.items.map(function(x) { GranuleMetadata.convertFootprintAndImageFromCMR(x); var granule_id = x["meta"]["concept-id"]; @@ -766,6 +767,19 @@ define([ _context.gridStore.add(x) }); + // remove footprints and preview from displaying on the map if they are not in the current page of the granule table + var currentlyVisibleFootprints = {} + var currentlyVisiblePreviews = {} + + for (var i=0; i