Skip to content

Commit

Permalink
Addressed feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtuevo committed Oct 15, 2024
1 parent 3231978 commit 8beadb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/packages/core/src/components/Actions/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down

0 comments on commit 8beadb0

Please sign in to comment.