Skip to content

Commit

Permalink
updated history stram
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmihaylov committed Jan 16, 2025
1 parent f7c262c commit e0f383f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/StreamHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ export class StreamHistory {
[event.data.name]: event.data.changed
});
break;
case 'actionDestroyed':
case 'actionDestroyed': {
const newSnapshot = { ...currentSnapshot };
delete newSnapshot[event.data.name];
this.snapshots.push(newSnapshot);
break;
}
}
})
}
Expand Down

0 comments on commit e0f383f

Please sign in to comment.