Fix for switching layers via Layer Options menu

This commit is contained in:
Mike Simpson 2023-08-16 14:49:30 +01:00
parent 86eb45477a
commit 2ed41b1f9d

View File

@ -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)