Skip to content

Commit

Permalink
fix(editor-3001): Fix empty query from starting timer (#27488)
Browse files Browse the repository at this point in the history
  • Loading branch information
phixMe authored Jan 14, 2025
1 parent 2881a1c commit cb7547d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/queries/nodes/DataNode/ElapsedTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ function ElapsedTimeWithTimings({
}

export function ElapsedTime({ showTimings }: { showTimings?: boolean }): JSX.Element | null {
const { elapsedTime, loadingStart, responseError, isShowingCachedResults, timings } = useValues(dataNodeLogic)
const { elapsedTime, loadingStart, responseError, isShowingCachedResults, timings, query } =
useValues(dataNodeLogic)
const [, setTick] = useState(0)

if ('query' in query && query.query === '') {
return null
}

let time = elapsedTime
if (isShowingCachedResults) {
time = 0
Expand Down

0 comments on commit cb7547d

Please sign in to comment.