Browse Source

fix: extract source id from model/column

pull/7268/head
Pranav C 12 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({
formula: _tree.replaceAll('{{', '{').replaceAll('}}', '}'),
columns,
clientOrSqlUi: await Source.get(column.source_id).then(
(source) => source.type,
),
clientOrSqlUi: await Source.get(
model?.source_id ?? column?.source_id,
).then((source) => source.type),
});
// populate and save parsedTree to column if not exist

Loading…
Cancel
Save