diff --git a/packages/server/src/utilities/rowProcessor/utils.ts b/packages/server/src/utilities/rowProcessor/utils.ts index 1232e674ac..48697af6a9 100644 --- a/packages/server/src/utilities/rowProcessor/utils.ts +++ b/packages/server/src/utilities/rowProcessor/utils.ts @@ -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)