Skip to content

Commit

Permalink
Use optional chaining
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Rose <[email protected]>
  • Loading branch information
adrinr and samwho authored Sep 3, 2024
1 parent 2e4ba9c commit 662c6be
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 @@ -282,7 +282,7 @@ export async function renameLinkedViews(table: Table, renaming: RenameColumn) {

return tableField.tableId === table._id
})) {
const columns = view.schema && view.schema[relField]?.columns
const columns = view.schema?.[relField]?.columns

if (columns && columns[renaming.old]) {
columns[renaming.updated] = columns[renaming.old]
Expand Down

0 comments on commit 662c6be

Please sign in to comment.