π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(Sentry TypeError): undefined is not an object (evaluating 'y.value[l.id].columns')
Ramesh Manee09564a1a77e
diff --git a/packages/nc-gui/components/erd/utils.ts b/packages/nc-gui/components/erd/utils.tsindex 9e6412ac80..941091227b 100644--- a/packages/nc-gui/components/erd/utils.ts+++ b/packages/nc-gui/components/erd/utils.ts@@ -78,7 +78,7 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ERconst relations = computed(() =>erdTables.value.reduce((acc, table) => {const meta = metasWithIdAsKey.value[table.id!]- const columns = meta.columns?.filter((column: ColumnType) => isLinksOrLTAR(column) && column.system !== 1) || []+ const columns = meta?.columns?.filter((column: ColumnType) => isLinksOrLTAR(column) && column.system !== 1) || []for (const column of columns) {const colOptions = column.colOptions as LinkToAnotherRecordType@@ -144,7 +144,7 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ERelse if (type === RelationTypes.MANY_TO_MANY) typeLabel = 'many to many'else if (type === 'oo') typeLabel = 'one to one'- const parentCol = metasWithIdAsKey.value[source].columns?.find((col) => {+ const parentCol = metasWithIdAsKey.value[source]?.columns?.find((col) => {const colOptions = col.colOptions as LinkToAnotherRecordTypeif (!colOptions) return false@@ -155,7 +155,7 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ER)})- const childCol = metasWithIdAsKey.value[target].columns?.find((col) => {+ const childCol = metasWithIdAsKey.value[target]?.columns?.find((col) => {const colOptions = col.colOptions as LinkToAnotherRecordTypeif (!colOptions) return false@@ -193,7 +193,7 @@ export function useErdElements(tables: MaybeRef<TableType[]>, props: MaybeRef<ERif (!table.id) return accconst columns =- metasWithIdAsKey.value[table.id].columns?.filter((col) => {+ metasWithIdAsKey.value[table.id]?.columns?.filter((col) => {if ([UITypes.CreatedBy, UITypes.LastModifiedBy].includes(col.uidt as UITypes) && col.system) return falsereturn config.value.showAllColumns || (!config.value.showAllColumns && isLinksOrLTAR(col))}) || []