Merge pull request #15261 from Budibase/fix-datasource-typing

Fix wrong datasource typing
This commit is contained in:
Adria Navarro 2024-12-30 10:23:07 +01:00 committed by GitHub
commit 521e1c1f61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -133,11 +133,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => {
type = ($datasource as any).value?.datasource?.type
}
// Handle calculation views
if (
type === "viewV2" &&
"type" in $definition &&
$definition?.type === ViewV2Type.CALCULATION
) {
if (type === "viewV2" && $definition?.type === ViewV2Type.CALCULATION) {
return false
}
return ["table", "viewV2", "link"].includes(type)