π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: correction in MM-like check
Pranav C3688b16379ff
diff --git a/packages/nocodb-sdk/src/lib/UITypes.ts b/packages/nocodb-sdk/src/lib/UITypes.tsindex 43fc00ed3b..67ae5c0303 100644--- a/packages/nocodb-sdk/src/lib/UITypes.ts+++ b/packages/nocodb-sdk/src/lib/UITypes.ts@@ -495,12 +495,8 @@ export function isMMOrMMLike(col: ColumnType | { uidt: UITypes | string; colOptions?: any }): boolean {if (typeof col === 'object') {- // Check if it's Links v2 (always MM-like because v2 uses junction tables for all relation types)- if (col.uidt === UITypes.Links) {- return true;- }// Check if it's LinkToAnotherRecord with version V2 (also MM-like)- if (col.uidt === UITypes.LinkToAnotherRecord && col.colOptions) {+ if (isLinksOrLTAR(col) && col.colOptions) {if ((col.colOptions as LinkToAnotherRecordType)?.version === LinksVersion.V2) {return true;}