Skip to content

Commit

Permalink
[fix] fix visible layers toggle for split maps mode(#2168)
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 Mar 27, 2023
1 parent f0727c9 commit 8896dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/src/map-utils.ts
Expand Up @@ -26,9 +26,9 @@ export const onViewPortChange = (

export const getMapLayersFromSplitMaps = (
splitMaps: SplitMap[],
mapIndex?: number | undefined
mapIndex?: number
): SplitMapLayers | undefined | null => {
return splitMaps[mapIndex || '']?.layers;
return splitMaps[mapIndex || 0]?.layers;
};

/**
Expand Down

0 comments on commit 8896dc1

Please sign in to comment.