Browse Source

chore(nocodb): add formula comment

pull/4776/head
Wing-Kam Wong 2 years ago
parent
commit
bcb6031db6
  1. 5
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

5
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/formulav2/formulaQueryBuilderv2.ts

@ -54,7 +54,10 @@ export default async function formulaQueryBuilderv2(
) { ) {
// register jsep curly hook // register jsep curly hook
jsep.plugins.register(jsepCurlyHook); jsep.plugins.register(jsepCurlyHook);
const tree = jsep(_tree);
// formula may include double curly brackets in previous version
// convert to single curly bracket here for compatibility
const tree = jsep(_tree.replaceAll('{{', '{').replaceAll('}}', '}'));
const columnIdToUidt = {}; const columnIdToUidt = {};

Loading…
Cancel
Save