Fix for switching layers via Layer Options menu
This commit is contained in:
parent
86eb45477a
commit
2ed41b1f9d
@ -297,7 +297,7 @@ export const DisplayPreferencesProvider: React.FC<{}> = ({children}) => {
|
||||
}
|
||||
flipHistoricData(e);
|
||||
},
|
||||
[historicData],
|
||||
[historicData, historicMap],
|
||||
)
|
||||
const historicDataSwitchOnClick = (e) => {
|
||||
flipHistoricData(e)
|
||||
@ -315,7 +315,7 @@ export const DisplayPreferencesProvider: React.FC<{}> = ({children}) => {
|
||||
}
|
||||
fliphistoricMap(e);
|
||||
},
|
||||
[historicMap],
|
||||
[historicMap, historicData],
|
||||
)
|
||||
const historicMapSwitchOnClick = (e) => {
|
||||
fliphistoricMap(e)
|
||||
|
Loading…
Reference in New Issue
Block a user