fix: wait for api to be read to load explorer table

This commit is contained in:
Ruben Fiszel
2024-05-30 11:30:18 +02:00
parent cefa12b551
commit 96246cd697
@@ -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: {