From df25ff307c7996426ea7197fb9b7682d79e0c062 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 2 May 2024 16:14:04 +0100 Subject: [PATCH] Add support for detecting datasource plus usage in tables when using a data provider as a source --- .../frontend-core/src/components/grid/stores/datasource.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/grid/stores/datasource.js b/packages/frontend-core/src/components/grid/stores/datasource.js index b3584d5ad4..6c309380e6 100644 --- a/packages/frontend-core/src/components/grid/stores/datasource.js +++ b/packages/frontend-core/src/components/grid/stores/datasource.js @@ -76,7 +76,11 @@ export const deriveStores = context => { ) const hasBudibaseIdentifiers = derived(datasource, $datasource => { - return ["table", "viewV2", "link"].includes($datasource?.type) + let type = $datasource?.type + if (type === "provider") { + type = $datasource.value?.datasource?.type + } + return ["table", "viewV2", "link"].includes(type) }) return {