Skip to content

Commit

Permalink
fix: time series chart not cleared when changing time range and no da…
Browse files Browse the repository at this point in the history
…ta is available
  • Loading branch information
claustres committed Sep 6, 2024
1 parent 02d6ccc commit 5201310
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/client/components/chart/KTimeSeriesChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,10 @@ async function update () {
const config = await makeChartConfig()
if (!config) {
if (chart) chart.destroy()
if (chart) {
chart.clear()
chart.destroy()
}
chart = null
hasData.value = false
return
Expand Down

0 comments on commit 5201310

Please sign in to comment.