From d22384243d1d2b74ddc403216dab901985ede6ef Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Thu, 11 Jul 2024 13:10:32 -0700 Subject: [PATCH] Fixed conditional reactivity off by one error. --- src/runtime/Evaluator.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/Evaluator.ts b/src/runtime/Evaluator.ts index 58163077d..d3985f5bd 100644 --- a/src/runtime/Evaluator.ts +++ b/src/runtime/Evaluator.ts @@ -1550,9 +1550,9 @@ export default class Evaluator { .getAncestors(streamNode) .filter((node, index, array) => { if (node instanceof Expression && index > 0) { - const parent = array[index + 1]; - return parent instanceof Expression - ? parent.hasBranch(node) + const child = array[index - 1]; + return child instanceof Expression + ? node.hasBranch(child) : false; } return false;