|
|
@ -1097,9 +1097,10 @@ export function validateFormulaAndExtractTreeWithType( |
|
|
|
if (col?.uidt === UITypes.Formula) { |
|
|
|
if (col?.uidt === UITypes.Formula) { |
|
|
|
// todo: check for circular reference
|
|
|
|
// todo: check for circular reference
|
|
|
|
|
|
|
|
|
|
|
|
// todo: extract the type and return
|
|
|
|
const formulaRes = col.colOptions?.parsed_tree || validateFormulaAndExtractTreeWithType( |
|
|
|
const formulaRes = validateFormulaAndExtractTreeWithType( |
|
|
|
// formula may include double curly brackets in previous version
|
|
|
|
col.colOptions.formula, |
|
|
|
// convert to single curly bracket here for compatibility
|
|
|
|
|
|
|
|
col.colOptions.formula.replaceAll('{{', '{').replaceAll('}}', '}'), |
|
|
|
columns |
|
|
|
columns |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|