From 60f65533407d1d4be0d7305762ddfb70c815e358 Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Mon, 13 May 2024 22:33:17 +0100 Subject: [PATCH] remove hide var from apexchart component --- packages/client/src/components/app/charts/ApexChart.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/app/charts/ApexChart.svelte b/packages/client/src/components/app/charts/ApexChart.svelte index ee0e0480e7..6010c326ac 100644 --- a/packages/client/src/components/app/charts/ApexChart.svelte +++ b/packages/client/src/components/app/charts/ApexChart.svelte @@ -47,16 +47,15 @@ } $: noData = optionsCopy == null || optionsCopy?.series?.length === 0 - $: hide = noData - // Call render chart upon changes to hide, as apex charts has issues with rendering upon changes automatically + // Call render chart upon changes to noData, as apex charts has issues with rendering upon changes automatically // if the chart is hidden. - $: renderChart(chartElement, hide) + $: renderChart(chartElement, noData) $: updateChart(optionsCopy) {#key optionsCopy?.customColor} -
+
{#if $builderStore.inBuilder && noData}