From 6aedc253924ef8e863e3da41ec707bb7574f6c43 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Sun, 29 Dec 2024 12:50:17 +0100 Subject: [PATCH] Fix wrong "in" of undefined --- .../frontend-core/src/components/grid/stores/datasource.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/frontend-core/src/components/grid/stores/datasource.ts b/packages/frontend-core/src/components/grid/stores/datasource.ts index ce9f2837bb..7aee6e8515 100644 --- a/packages/frontend-core/src/components/grid/stores/datasource.ts +++ b/packages/frontend-core/src/components/grid/stores/datasource.ts @@ -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)