Add support for detecting datasource plus usage in tables when using a data provider as a source
This commit is contained in:
parent
329201569d
commit
df25ff307c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue