1
0
Fork 0
mirror of synced 2024-07-13 18:26:06 +12:00

Clean code

This commit is contained in:
Adria Navarro 2023-10-11 13:21:51 +02:00
parent 9391854f46
commit 715db97436

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)