From 24ba5dda0127f1d97066fcb371181d32ca1538cc Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 24 May 2022 12:13:38 +0800 Subject: [PATCH] fix: remove unexpected $pt.name$ --- packages/nocodb-sdk/src/lib/formulaHelpers.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/formulaHelpers.ts b/packages/nocodb-sdk/src/lib/formulaHelpers.ts index 468469450d..6666c097b8 100644 --- a/packages/nocodb-sdk/src/lib/formulaHelpers.ts +++ b/packages/nocodb-sdk/src/lib/formulaHelpers.ts @@ -84,9 +84,6 @@ export function substituteColumnIdWithAliasInFormula( c.title === colNameOrId ); pt.name = column?.title || ptRaw?.name || pt?.name; - if (pt.name[0] != '$' && pt.name[pt.name.length - 1] != '$') { - pt.name = '$' + pt.name + '$'; - } } else if (pt.type === 'BinaryExpression') { substituteId(pt.left, ptRaw?.left); substituteId(pt.right, ptRaw?.right);