Fixed parser to allow $ and x.0.thing in variable references

This commit is contained in:
Stefan Zermatten
2022-02-26 19:36:56 +02:00
parent 3646c13355
commit 49fa9cc470
4 changed files with 36 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ import recalculateCalculation from './recalculateCalculation.js'
export default function recalculateInlineCalculations(inlineCalcObj, scope, log){
// Skip if there are no calculations
if (!inlineCalcObj?.calculations?.length) return;
if (!inlineCalcObj?.inlineCalculations?.length) return;
// Recalculate each calculation with the current scope
inlineCalcObj.inlineCalculations.forEach(calc => {
recalculateCalculation(calc, scope, log);