π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: formula - column id ref extraction regex correction
Pranav C608773e5ed19
diff --git a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.tsindex 8b768fb5f7..036752a8c6 100644--- a/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts+++ b/packages/nocodb-sdk/src/lib/formula/validate-extract-tree.ts@@ -379,7 +379,7 @@ async function checkForCircularFormulaRef(const neighbours = [...new Set((- (c.colOptions as FormulaType).formula.match(/c_?\w{14,15}/g) || []+ (c.colOptions as FormulaType).formula.match(/cl?_?\w{14,15}/g) || []).filter((colId) =>columns.some((col) => col.id === colId && col.uidt === UITypes.Formula@@ -407,7 +407,7 @@ async function checkForCircularFormulaRef(// Extract columns used in the formula and check for cyclesconst referencedColumns =- (col.colOptions as FormulaType).formula.match(/c_?\w{14,15}/g) || [];+ (col.colOptions as FormulaType).formula.match(/cl?_?\w{14,15}/g) || [];for (const refColId of referencedColumns) {const refCol = columns.find((c) => c.id === refColId);