Skip to content

Commit

Permalink
Fix: spuriously appearing zoom to data
Browse files Browse the repository at this point in the history
  • Loading branch information
insmac committed Dec 16, 2024
1 parent 559faae commit 7071d0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-console/src/scenes/Editor/Metrics/metric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ export const Metric = ({

if (responses[1] && responses[1].type === QuestDB.Type.DQL) {
const lastNotNull = responses[1].data[0] as LastNotNull
if (lastNotNull) {
setLastNotNull(new Date(lastNotNull.created).getTime())
}
setLastNotNull(
lastNotNull ? new Date(lastNotNull.created).getTime() : undefined,
)
}
} catch (err) {
console.error(err)
Expand Down

0 comments on commit 7071d0c

Please sign in to comment.