Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

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.ts
index be6ffbc5db..2ff82eb700 100644
--- a/packages/nocodb/src/models/LinksColumn.ts
+++ b/packages/nocodb/src/models/LinksColumn.ts
@@ -18,7 +18,13 @@ export default class LinksColumn
return 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(