Skip to content

Commit

Permalink
disable focus listener on refresh off
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Dec 4, 2024
1 parent bd1a8f8 commit d7bae00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-console/src/scenes/Editor/Metrics/metric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export const Metric = ({
}, [autoRefreshTables, metricDuration, metric.tableId, refreshRate])

const focusListener = useCallback(() => {
if (focusListenerRef.current) {
if (focusListenerRef.current && refreshRate !== RefreshRate.OFF) {
fetchMetric()
}
}, [metric.tableId])
Expand Down

0 comments on commit d7bae00

Please sign in to comment.