Clean code
This commit is contained in:
parent
9391854f46
commit
715db97436
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue