From e7c5da8f86aa9175f0b3153e73dde8331e598846 Mon Sep 17 00:00:00 2001 From: Phil Varner Date: Thu, 16 May 2024 09:06:48 -0400 Subject: [PATCH] fix another bad self link (#387) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- src/utils/mapHelper.js | 4 +++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8399e0a..92a2dc2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## 5.4.0 - 2024-05-16 + +### Fixed + +- Another instance of STAC API Item link using the first link in the links array, + instead of looking up the "self" relation link by "rel" value. + ## 5.3.0 - 2024-05-14 ### Changed diff --git a/package-lock.json b/package-lock.json index e6bc7e2f..3b58d937 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "filmdrop-ui", - "version": "5.2.0", + "version": "5.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "filmdrop-ui", - "version": "5.2.0", + "version": "5.4.0", "license": "Apache-2.0", "dependencies": { "@emotion/react": "^11.11.4", diff --git a/package.json b/package.json index d48fe685..a425d7c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "filmdrop-ui", - "version": "5.2.0", + "version": "5.4.0", "license": "Apache-2.0", "dependencies": { "@emotion/react": "^11.11.4", diff --git a/src/utils/mapHelper.js b/src/utils/mapHelper.js index 56d31d92..8e6b1e32 100644 --- a/src/utils/mapHelper.js +++ b/src/utils/mapHelper.js @@ -372,7 +372,9 @@ function addImageOverlay(item) { clearLayer('clickedSceneImageLayer') - const featureURL = item.links[0].href + const featureURL = item?.links + ?.find((x) => x?.rel === 'self') + ?.href?.toString() const tilerParams = constructSceneTilerParams(_selectedCollectionData.id) fetch(featureURL, {