Skip to content

Commit

Permalink
Add undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Sep 3, 2024
1 parent 4efb3d6 commit 2667238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/sdk/app/views/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2667238

Please sign in to comment.