fix: broken analytics pages (#5052)

This commit is contained in:
Calum H.
2026-01-06 00:42:13 +00:00
committed by GitHub
parent 099011a177
commit 7c2327ce16
3 changed files with 15 additions and 7 deletions

View File

@@ -286,7 +286,7 @@ const flipLegend = (legend, newVal) => {
}
const resetChart = () => {
if (!chart.value) return
if (!chart.value?.chart) return
chart.value.updateSeries([...props.data])
chart.value.updateOptions({
xaxis: {

View File

@@ -125,13 +125,14 @@ const chartOptions = {
const chart = ref(null)
const resetChart = () => {
chart.value?.updateSeries([...props.data])
chart.value?.updateOptions({
if (!chart.value?.chart) return
chart.value.updateSeries([...props.data])
chart.value.updateOptions({
xaxis: {
categories: props.labels,
},
})
chart.value?.resetSeries()
chart.value.resetSeries()
}
defineExpose({