Browse Source

fix: handle column name with spaces

pull/1979/head
Wing-Kam Wong 3 years ago
parent
commit
9cae93c989
  1. 7
      packages/nocodb-sdk/src/lib/formulaHelpers.ts

7
packages/nocodb-sdk/src/lib/formulaHelpers.ts

@ -17,9 +17,10 @@ export const jsepCurlyHook = {
const nodes = context.gobbleExpressions(CCURLY_CODE);
if (context.code === CCURLY_CODE) {
context.index += 1;
if (nodes.length > 0) {
env.node = nodes[0];
}
env.node = {
type: jsep.IDENTIFIER,
name: nodes.map((node) => node.name).join(' '),
};
return env.node;
} else {
context.throwError('Unclosed }');

Loading…
Cancel
Save