Browse Source

fix: extract source id from model/column

pull/7268/head
Pranav C 9 months ago
parent
commit
748322ab66
  1. 6
      packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts

6
packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts

@ -80,9 +80,9 @@ async function _formulaQueryBuilder(
tree = validateFormulaAndExtractTreeWithType({ tree = validateFormulaAndExtractTreeWithType({
formula: _tree.replaceAll('{{', '{').replaceAll('}}', '}'), formula: _tree.replaceAll('{{', '{').replaceAll('}}', '}'),
columns, columns,
clientOrSqlUi: await Source.get(column.source_id).then( clientOrSqlUi: await Source.get(
(source) => source.type, model?.source_id ?? column?.source_id,
), ).then((source) => source.type),
}); });
// populate and save parsedTree to column if not exist // populate and save parsedTree to column if not exist

Loading…
Cancel
Save