diff --git a/packages/builder/src/stores/builder/datasources.js b/packages/builder/src/stores/builder/datasources.js index ad2e719160..1cb7d49200 100644 --- a/packages/builder/src/stores/builder/datasources.js +++ b/packages/builder/src/stores/builder/datasources.js @@ -155,10 +155,7 @@ export function createDatasourcesStore() { if (!datasource?._id || !datasource?._rev) { return } - await API.deleteDatasource({ - datasourceId: datasource._id, - datasourceRev: datasource._rev, - }) + await API.deleteDatasource(datasource._id, datasource._rev) replaceDatasource(datasource._id, null) }