This commit is contained in:
Adria Navarro 2023-10-11 13:21:19 +02:00
parent 6fa5727166
commit 9391854f46
1 changed files with 4 additions and 3 deletions

View File

@ -54,14 +54,15 @@ export function processFormulas(
rowArray = rows
}
for (let [column, schema] of Object.entries(table.schema)) {
const isStaticFormula =
const isStatic =
schema.type === FieldTypes.FORMULA &&
schema.formulaType === FormulaTypes.STATIC
if (
schema.type !== FieldTypes.FORMULA ||
schema.formula == null ||
(dynamic && isStaticFormula) ||
(!dynamic && !isStaticFormula)
(dynamic && isStatic) ||
(!dynamic && !isStatic)
) {
continue
}