Clean code
This commit is contained in:
parent
9391854f46
commit
715db97436
|
@ -54,12 +54,13 @@ export function processFormulas(
|
||||||
rowArray = rows
|
rowArray = rows
|
||||||
}
|
}
|
||||||
for (let [column, schema] of Object.entries(table.schema)) {
|
for (let [column, schema] of Object.entries(table.schema)) {
|
||||||
const isStatic =
|
if (schema.type !== FieldTypes.FORMULA) {
|
||||||
schema.type === FieldTypes.FORMULA &&
|
continue
|
||||||
schema.formulaType === FormulaTypes.STATIC
|
}
|
||||||
|
|
||||||
|
const isStatic = schema.formulaType === FormulaTypes.STATIC
|
||||||
|
|
||||||
if (
|
if (
|
||||||
schema.type !== FieldTypes.FORMULA ||
|
|
||||||
schema.formula == null ||
|
schema.formula == null ||
|
||||||
(dynamic && isStatic) ||
|
(dynamic && isStatic) ||
|
||||||
(!dynamic && !isStatic)
|
(!dynamic && !isStatic)
|
||||||
|
|
Loading…
Reference in New Issue