Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix layers display settings bug #1746

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/client/src/pages/settings/editorSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -88,7 +89,7 @@ const EditorSettings = () => {
conf: conf,
},
// @ts-expect-error typing not complete
type === "WMTS" ? layer?.Identifier : layer?.Name,
key,
),
);
};
Expand Down
Loading