Skip to content

Commit

Permalink
fix another bad self link (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Varner authored May 16, 2024
1 parent d203d8e commit e7c5da8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/utils/mapHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit e7c5da8

Please sign in to comment.