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);
|
flipHistoricData(e);
|
||||||
},
|
},
|
||||||
[historicData],
|
[historicData, historicMap],
|
||||||
)
|
)
|
||||||
const historicDataSwitchOnClick = (e) => {
|
const historicDataSwitchOnClick = (e) => {
|
||||||
flipHistoricData(e)
|
flipHistoricData(e)
|
||||||
@ -315,7 +315,7 @@ export const DisplayPreferencesProvider: React.FC<{}> = ({children}) => {
|
|||||||
}
|
}
|
||||||
fliphistoricMap(e);
|
fliphistoricMap(e);
|
||||||
},
|
},
|
||||||
[historicMap],
|
[historicMap, historicData],
|
||||||
)
|
)
|
||||||
const historicMapSwitchOnClick = (e) => {
|
const historicMapSwitchOnClick = (e) => {
|
||||||
fliphistoricMap(e)
|
fliphistoricMap(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user