Skip to content

Commit

Permalink
fix: member expr assignment op (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong authored Oct 27, 2023
1 parent 6e72de6 commit 06e2931
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fair-buttons-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rekajs/core': patch
---

Fix assignment op on member expressions
2 changes: 1 addition & 1 deletion packages/core/src/expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const updateLocalValue = (
let targetValue = baseValue;

for (let i = 1; i < path.length - 1; i++) {
targetValue = baseValue[path[i]];
targetValue = targetValue[path[i]];
}

targetValue[path[path.length - 1]] = newValue;
Expand Down

1 comment on commit 06e2931

@vercel
Copy link

@vercel vercel bot commented on 06e2931 Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reka – ./

rekajs.vercel.app
reka-prevwong.vercel.app
reka-git-main-prevwong.vercel.app
reka.js.org

Please sign in to comment.