1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00
This commit is contained in:
Adria Navarro 2023-10-11 13:21:19 +02:00
parent 6fa5727166
commit 9391854f46

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
}