diff --git a/packages/client/src/components/app/charts/ApexChart.svelte b/packages/client/src/components/app/charts/ApexChart.svelte index 8cbdbd0cca..1fd3cffdce 100644 --- a/packages/client/src/components/app/charts/ApexChart.svelte +++ b/packages/client/src/components/app/charts/ApexChart.svelte @@ -2,7 +2,7 @@ import { getContext } from "svelte" import ApexCharts from "apexcharts" import { Icon } from "@budibase/bbui" - import { cloneDeep } from "lodash" + import { cloneDeep } from "./utils" const { styleable, builderStore } = getContext("sdk") const component = getContext("component") @@ -10,7 +10,8 @@ export let options // Apex charts directly modifies the options object with default properties and internal variables. These being present could unintentionally cause issues to the provider of this prop as the changes are reflected in that component as well. To prevent any issues we clone options here to provide a buffer. - $: optionsCopy = structuredClone(options) + $: optionsCopy = cloneDeep(options) + $: console.log(options, optionsCopy) let chartElement let chart diff --git a/packages/client/src/components/app/charts/AreaChart.svelte b/packages/client/src/components/app/charts/AreaChart.svelte index d30365e4d0..626f2e041a 100644 --- a/packages/client/src/components/app/charts/AreaChart.svelte +++ b/packages/client/src/components/app/charts/AreaChart.svelte @@ -1,6 +1,6 @@