From 22f5fc13b28572bee824997f69ad72915798f390 Mon Sep 17 00:00:00 2001 From: Victor Meng Date: Mon, 14 Nov 2022 12:42:07 -0800 Subject: [PATCH] Empty commit to trigger new build --- src/hooks/useKnockoutExplorer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useKnockoutExplorer.ts b/src/hooks/useKnockoutExplorer.ts index 56958daf7..214a8e4b2 100644 --- a/src/hooks/useKnockoutExplorer.ts +++ b/src/hooks/useKnockoutExplorer.ts @@ -382,7 +382,8 @@ function updateContextsFromPortalMessage(inputs: DataExplorerInputsFrame) { } } - useTabs.getState().setShowNetworkSettingsWarning(!doNetworkSettingsAllowDataExplorerAccess()); + const isDataExplorerAccessAllowed = doNetworkSettingsAllowDataExplorerAccess(); + useTabs.getState().setShowNetworkSettingsWarning(!isDataExplorerAccessAllowed); if (inputs.features) { Object.assign(userContext.features, extractFeatures(new URLSearchParams(inputs.features)));