Clean code

This commit is contained in:
Adria Navarro 2023-10-11 13:21:51 +02:00
parent 9391854f46
commit 715db97436
1 changed files with 5 additions and 4 deletions

View File

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