From e233e26899ac11283e9c222a4ed8978e798651e2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 17 Dec 2024 13:57:14 +0000 Subject: [PATCH] Another issue found in DS store. --- packages/builder/src/stores/builder/datasources.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) }