⚡ Sangsakala Proxy 🏠 Home
Skip to content

Commit 9e26f80

Browse files
committed
Empty delta
1 parent c4d2ad7 commit 9e26f80

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎JavaScript/1-proxy.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Transaction.start = (data) => {
1010
commit: () => {
1111
console.log('commit transaction');
1212
Object.assign(data, delta);
13+
delta = {};
1314
},
1415
rollback: () => {
1516
console.log('rollback transaction');

0 commit comments

Comments
 (0)