diff --git a/packages/builder/src/stores/builder/datasources.js b/packages/builder/src/stores/builder/datasources.js index 6a2a026ae4..ad2e719160 100644 --- a/packages/builder/src/stores/builder/datasources.js +++ b/packages/builder/src/stores/builder/datasources.js @@ -93,10 +93,10 @@ export function createDatasourcesStore() { } const updateSchema = async (datasource, tablesFilter) => { - const response = await API.buildDatasourceSchema({ - datasourceId: datasource?._id, - tablesFilter, - }) + const response = await API.buildDatasourceSchema( + datasource?._id, + tablesFilter + ) updateDatasource(response) }