Skip to content

Commit

Permalink
fix(Diff#toJSON): Don't save payload as oldItem
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Apr 5, 2024
1 parent b913a57 commit cf71f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default class Diff {
return {
...action,
payload: action.payload.clone(false),
oldItem: action.payload.clone(false),
oldItem: action.oldItem && action.oldItem.clone(false),
}
})
}
Expand Down

0 comments on commit cf71f1b

Please sign in to comment.