From 8beadb059660fda4175767aa8e5dce8e5c2a0a3d Mon Sep 17 00:00:00 2001 From: minhtuevo Date: Tue, 15 Oct 2024 14:28:54 -0700 Subject: [PATCH] Addressed feedback --- app/packages/core/src/components/Actions/Options.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/packages/core/src/components/Actions/Options.tsx b/app/packages/core/src/components/Actions/Options.tsx index 023c6999ca..36dc1de288 100644 --- a/app/packages/core/src/components/Actions/Options.tsx +++ b/app/packages/core/src/components/Actions/Options.tsx @@ -222,7 +222,9 @@ const QueryPerformance = () => { const reset = useResetRecoilState(fos.lightningThreshold); const count = useRecoilValue(fos.datasetSampleCount); const theme = useTheme(); - const enableQpMode = useRecoilValue(fos.enableQueryPerformanceConfig) && useRecoilValue(fos.defaultQueryPerformanceConfig); + const enableQueryPerformanceConfig = useRecoilValue(fos.enableQueryPerformanceConfig); + const defaultQueryPerformanceConfig = useRecoilValue(fos.defaultQueryPerformanceConfig); + const enableQpMode = enableQueryPerformanceConfig && defaultQueryPerformanceConfig; if (enableQpMode) return ( <>