From 2667238d934cab84e531cf05710afdc0549abc09 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 3 Sep 2024 14:47:49 +0200 Subject: [PATCH] Add undefined check --- packages/server/src/sdk/app/views/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/sdk/app/views/index.ts b/packages/server/src/sdk/app/views/index.ts index 099cb75dc9a..7aa010775e2 100644 --- a/packages/server/src/sdk/app/views/index.ts +++ b/packages/server/src/sdk/app/views/index.ts @@ -276,7 +276,7 @@ export async function renameLinkedViews(table: Table, renaming: RenameColumn) { for (const view of viewsV2) { for (const relField of Object.keys(view.schema || {}).filter(f => { const tableField = relatedTable.schema[f] - if (tableField.type !== FieldType.LINK) { + if (!tableField || tableField.type !== FieldType.LINK) { return false }