Allowed effects and calculations to target nearest ancestors of #type

This commit is contained in:
Stefan Zermatten
2021-02-02 16:11:59 +02:00
parent 69c72e0987
commit aaa5d0b63b
13 changed files with 69 additions and 17 deletions

View File

@@ -38,7 +38,11 @@ export default function computeEffect(effect, memo){
result,
context,
dependencies,
} = evaluateCalculation(effect.calculation, memo);
} = evaluateCalculation({
string: effect.calculation,
prop: effect,
memo
});
effect.result = result.value;
effect.dependencies.push(...dependencies);
if (context.errors.length){