Skip to content

Commit

Permalink
fix(reka): history
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Apr 2, 2024
1 parent f86d312 commit c5d41da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/metal-carrots-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rekajs/core': patch
---

Fix missing return statement in history operation
2 changes: 2 additions & 0 deletions packages/core/src/history/manager-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export class DefaultHistoryManager extends HistoryManager {

if (change.type === 'update' && change.observableKind === 'array') {
pathObj[change.index] = change.oldValue;
return;
}

if (change.type === 'splice') {
Expand Down Expand Up @@ -133,6 +134,7 @@ export class DefaultHistoryManager extends HistoryManager {

if (change.type === 'update' && change.observableKind === 'array') {
pathObj[change.index] = change.newValue;
return;
}

if (change.type === 'splice') {
Expand Down

0 comments on commit c5d41da

Please sign in to comment.