From 96246cd697bfa82d0890f37a3708c7a376a5de28 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 30 May 2024 11:30:18 +0200 Subject: [PATCH] fix: wait for api to be read to load explorer table --- .../components/display/table/AppAggridExplorerTable.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/components/display/table/AppAggridExplorerTable.svelte b/frontend/src/lib/components/apps/components/display/table/AppAggridExplorerTable.svelte index 94815cebc8..4de502715d 100644 --- a/frontend/src/lib/components/apps/components/display/table/AppAggridExplorerTable.svelte +++ b/frontend/src/lib/components/apps/components/display/table/AppAggridExplorerTable.svelte @@ -319,7 +319,7 @@ } } - $: resolvedConfig && updateOptions() + $: api && resolvedConfig && updateOptions() let oldDatasource = datasource $: if (datasource && datasource != oldDatasource) { @@ -359,6 +359,7 @@ } function updateOptions() { + // console.debug('updateOptions', resolvedConfig, api) api?.updateGridOptions({ columnDefs: transformColumnDefs(resolvedConfig?.columnDefs), defaultColDef: {