From 2ed41b1f9d5f5f4f24c70db80c5d34c42cf01d66 Mon Sep 17 00:00:00 2001 From: Mike Simpson Date: Wed, 16 Aug 2023 14:49:30 +0100 Subject: [PATCH] Fix for switching layers via Layer Options menu --- app/src/frontend/displayPreferences-context.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/frontend/displayPreferences-context.tsx b/app/src/frontend/displayPreferences-context.tsx index a5b0094e..3bfcc1c3 100644 --- a/app/src/frontend/displayPreferences-context.tsx +++ b/app/src/frontend/displayPreferences-context.tsx @@ -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)