Browse Source

fix(nocodb-sdk): include node.value for literal case

pull/4599/head
Wing-Kam Wong 2 years ago
parent
commit
7ee02b4e7c
  1. 5
      packages/nocodb-sdk/src/lib/formulaHelpers.ts

5
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 {

Loading…
Cancel
Save