Skip to content

Commit

Permalink
fix: clear interval
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Apr 11, 2024
1 parent 0e97c75 commit 99fa05f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/components/chart/ChartWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const updateTooltip = () => {
date.value = dateStr
}
const toolTipMargin = 24
const width = container.value.getBoundingClientRect().width
const width = container.value?.getBoundingClientRect().width
const height = 400
const y = param.point ? param.point.y : null
const x = param.point ? param.point.x : null
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/utils/asyncInterval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export class AsyncInterval {
}

private runAsyncInterval = async (callback: CallbackFn) => {
await callback()
if (this.active) {
await callback()
setTimeout(() => this.runAsyncInterval(callback), this.interval)
}
}
Expand Down

0 comments on commit 99fa05f

Please sign in to comment.