From 1fdbc64fe53fd914933a7a63513828f07dc0c936 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 15 May 2024 06:27:34 +0200 Subject: [PATCH] fix: fix agchart rendering --- .../apps/components/display/charts/AppAgCharts.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte b/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte index 94363c9666..3f690a4fe1 100644 --- a/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte +++ b/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte @@ -118,7 +118,6 @@ data: options.data, series: options.series }) - AgChartsInstance?.update(chartInstance, options) } @@ -209,7 +208,7 @@ }) $: resolvedXData && resolvedDatasets && resolvedDatasetsValues && chartInstance && updateChart() - $: result && updateChartByResult() + $: result && chartInstance && updateChartByResult() function updateChartByResult() { if (!result || !chartInstance) { @@ -226,7 +225,6 @@ data: result?.['data'], series: result?.['series'] }) - AgChartsInstance?.update(chartInstance, options) } @@ -313,6 +311,7 @@ class={twMerge('w-full h-full', css?.container?.class, 'wm-agchart')} style={css?.container?.style ?? ''} > +