Skip to content

Commit

Permalink
chore: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Daesgar committed Dec 27, 2024
1 parent 9b7ba4d commit 50c9dc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/queries/nodes/DataNode/ElapsedTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ export function ElapsedTime({ showTimings }: { showTimings?: boolean }): JSX.Ele
}

if (!isShowingCachedResults && loadingStart && !elapsedTime) {
time = performance.now() - loadingStart
if (!responseError) {
time = performance.now() - loadingStart
window.requestAnimationFrame(() => {
setTick((tick) => tick + 1)
})
} else {
time = performance.now() - loadingStart
}
}

Expand Down

0 comments on commit 50c9dc5

Please sign in to comment.