diff --git a/packages/frontend-core/src/components/grid/stores/datasource.js b/packages/frontend-core/src/components/grid/stores/datasource.js index fd553a049b..0b62194f73 100644 --- a/packages/frontend-core/src/components/grid/stores/datasource.js +++ b/packages/frontend-core/src/components/grid/stores/datasource.js @@ -102,7 +102,10 @@ export const createActions = context => { // Refreshes the datasource definition const refreshDefinition = async () => { - const def = await getDatasourceDefinition({ API, datasource }) + const def = await getDatasourceDefinition({ + API, + datasource: get(datasource), + }) definition.set(def) }