From ec627bc8975a1d0c134fe77d2943dbd03ec4a21a Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Tue, 10 Dec 2024 15:47:32 +0100 Subject: [PATCH 1/3] Fix layers display settings bug --- src/client/src/pages/settings/editorSettings.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/src/pages/settings/editorSettings.tsx b/src/client/src/pages/settings/editorSettings.tsx index 4dac65100..729a07d10 100644 --- a/src/client/src/pages/settings/editorSettings.tsx +++ b/src/client/src/pages/settings/editorSettings.tsx @@ -72,11 +72,12 @@ const EditorSettings = () => { position: number, queryable: boolean, ) => { + const key = type === "WMTS" ? layer?.Identifier : layer?.Name; dispatch( patchSettings( "map.explorer", { - Identifier: layer.Identifier, + Identifier: key, Abstract: layer.Abstract, position: position, Title: layer.Title, @@ -88,7 +89,7 @@ const EditorSettings = () => { conf: conf, }, // @ts-expect-error typing not complete - type === "WMTS" ? layer?.Identifier : layer?.Name, + key, ), ); }; From af0ccaa6c6df47e050a0ef3ec3e3f24eabaeac47 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Tue, 10 Dec 2024 16:08:35 +0100 Subject: [PATCH 2/3] Add release notes entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac42c50d..b8b531200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ - Filtering striae for `not specified` returned wrong results. - Filtering by `borehole status` did not work. - When saving with ctrl+s in the borehole sections, the form content was reset. +- There was a bug when changing the order,transparency or visibility of custom WMS user layers. ## v2.1.870 - 2024-09-27 From 8e98d67749beb3d7655ad1afb790f285030b2e78 Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Tue, 10 Dec 2024 16:13:24 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Daniel Jovanovic --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8b531200..84f9950d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,7 +40,7 @@ - Filtering striae for `not specified` returned wrong results. - Filtering by `borehole status` did not work. - When saving with ctrl+s in the borehole sections, the form content was reset. -- There was a bug when changing the order,transparency or visibility of custom WMS user layers. +- There was a bug when changing the order, transparency or visibility of custom WMS user layers. ## v2.1.870 - 2024-09-27