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 b9872352dd..771c4c0740 100644 --- a/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte +++ b/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte @@ -216,6 +216,8 @@ let AgChartsInstance: any | undefined = undefined + $: license && loadLibrary() + async function loadLibrary() { if (ee) { const enterprise = await import('ag-charts-enterprise') diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte index 9d43f32b5d..656edec3a3 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte @@ -1,30 +1,15 @@