Skip to content

Commit

Permalink
Fixed conditional reactivity off by one error.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jul 11, 2024
1 parent 536282a commit d223842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/Evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d223842

Please sign in to comment.