Add undefined check

This commit is contained in:
Adria Navarro 2024-09-03 14:47:49 +02:00
parent 4efb3d6ed6
commit 2667238d93
1 changed files with 1 additions and 1 deletions

View File

@ -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
}