From 7ee02b4e7c61736672087601b1a486b6c4541f03 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 5 Dec 2022 16:35:00 +0800 Subject: [PATCH] fix(nocodb-sdk): include node.value for literal case --- packages/nocodb-sdk/src/lib/formulaHelpers.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nocodb-sdk/src/lib/formulaHelpers.ts b/packages/nocodb-sdk/src/lib/formulaHelpers.ts index 237e1ac4af..94f22b79b5 100644 --- a/packages/nocodb-sdk/src/lib/formulaHelpers.ts +++ b/packages/nocodb-sdk/src/lib/formulaHelpers.ts @@ -19,7 +19,10 @@ export const jsepCurlyHook = { context.index += 1; env.node = { type: jsep.IDENTIFIER, - name: nodes.map((node) => node.name).join(' '), + // column name with space would break it down to jsep.IDENTIFIER + jsep.LITERAL + // either take node.name for jsep.IDENTIFIER + // or take node.value for jsep.LITERAL + name: nodes.map((node) => node.name || node.value).join(' '), }; return env.node; } else {