From 4cdc0304c6e02ca0d6da7e294def83cc35677956 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 17 Dec 2024 13:55:07 +0000 Subject: [PATCH 1/2] Fixing an issue with datasource fetch schema not passing the correct parameters to frontend-core function. --- packages/builder/src/stores/builder/datasources.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) } From e233e26899ac11283e9c222a4ed8978e798651e2 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 17 Dec 2024 13:57:14 +0000 Subject: [PATCH 2/2] 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) }