Skip to content

Commit

Permalink
[Chore] merge other properties in splitMap merger (#2413)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Oct 28, 2023
1 parent bcb8c4e commit 58f0bb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reducers/src/vis-state-merger.ts
Expand Up @@ -446,6 +446,8 @@ export function mergeSplitMaps<S extends VisState>(

// create map panel if current map is not split
pushTo[i] = pushTo[i] || {
// keep id
...sm,
layers: pushTo === merged ? getInitialMapLayersForSplitMap(state.layers) : []
};
pushTo[i].layers = {
Expand Down

0 comments on commit 58f0bb7

Please sign in to comment.