Merge pull request #15261 from Budibase/fix-datasource-typing
Fix wrong datasource typing
This commit is contained in:
commit
521e1c1f61
|
@ -133,11 +133,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => {
|
||||||
type = ($datasource as any).value?.datasource?.type
|
type = ($datasource as any).value?.datasource?.type
|
||||||
}
|
}
|
||||||
// Handle calculation views
|
// Handle calculation views
|
||||||
if (
|
if (type === "viewV2" && $definition?.type === ViewV2Type.CALCULATION) {
|
||||||
type === "viewV2" &&
|
|
||||||
"type" in $definition &&
|
|
||||||
$definition?.type === ViewV2Type.CALCULATION
|
|
||||||
) {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return ["table", "viewV2", "link"].includes(type)
|
return ["table", "viewV2", "link"].includes(type)
|
||||||
|
|
Loading…
Reference in New Issue