π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: add fallback for relation column retrieval in LinksColumn
Pranav Ccaa093d16c9d
diff --git a/packages/nocodb/src/models/LinksColumn.ts b/packages/nocodb/src/models/LinksColumn.tsindex be6ffbc5db..2ff82eb700 100644--- a/packages/nocodb/src/models/LinksColumn.ts+++ b/packages/nocodb/src/models/LinksColumn.ts@@ -18,7 +18,13 @@ export default class LinksColumnreturn this.fk_child_column_id;} else if (this.type === 'mm') {return this.fk_parent_column_id;+ } else if (this.type === 'bt') {+ return this.fk_parent_column_id;+ } else if (this.type === 'oo') {+ return this.fk_parent_column_id;}+ // Default fallback for any other types (mo, om, etc.)+ return this.fk_parent_column_id;}async getRelationColumn(