Skip to content

Commit

Permalink
- #3511 fixed Map Preview doesn't select the default feature layer co…
Browse files Browse the repository at this point in the history
…rrectly when it's supplied via query parameter
  • Loading branch information
t83714 committed Mar 26, 2024
1 parent 922f6a8 commit 56a35bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v3.0.1

- #3511 fixed Map Preview doesn't select the default feature layer correctly when it's supplied via query parameter

## v3.0.0

- #3472, #3484 Node.js 18 & React 18 Upgrade
Expand Down
2 changes: 1 addition & 1 deletion magda-web-client/src/Components/Common/DataPreviewMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function getQueryParameterValueWithPossibleKeys(
if (!query) {
return undefined;
}
for (const key in keys) {
for (const key of keys) {
if (typeof query?.[key] !== "undefined") {
return query[key];
}
Expand Down

0 comments on commit 56a35bc

Please sign in to comment.