Add support for detecting datasource plus usage in tables when using a data provider as a source

This commit is contained in:
Andrew Kingston 2024-05-02 16:14:04 +01:00
parent 329201569d
commit df25ff307c
1 changed files with 5 additions and 1 deletions

View File

@ -76,7 +76,11 @@ export const deriveStores = context => {
) )
const hasBudibaseIdentifiers = derived(datasource, $datasource => { 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 { return {