Fixed client crash when effects target calcs

This commit is contained in:
Stefan Zermatten
2022-08-26 09:42:34 +02:00
parent b6ed9ffb74
commit 43f8df09f0

View File

@@ -5,7 +5,7 @@ import logErrors from './logErrors.js';
export default function recalculateCalculation(calc, actionContext, context){
if (!calc?.parseNode) return;
calc._parseLevel = 'reduce';
applyEffectsToCalculationParseNode(calc, actionContext.log);
applyEffectsToCalculationParseNode(calc, actionContext);
evaluateCalculation(calc, actionContext.scope, context);
logErrors(calc.errors, actionContext.log);
logErrors(calc.errors, actionContext);
}