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 ( <>