fix: hide loading indicator after SensorChart renders

The SensorChart hook was creating charts successfully but never removing
the loading overlay, causing charts to appear stuck on 'Loading chart...'.

Now removes the [data-loading] element after the chart is created.
This commit is contained in:
Graham McIntire 2026-03-10 10:57:43 -05:00
parent fbcf7ee1ae
commit 0994506c52
No known key found for this signature in database

View file

@ -357,6 +357,12 @@ const SensorChart: SensorChartHook = {
}
}
})
// Hide loading indicator after chart is created
const loadingEl = this.el.querySelector('[data-loading]')
if (loadingEl) {
loadingEl.remove()
}
},
handleLiveDataUpdate(event: any) {