Skip to content

Commit

Permalink
adds the ID of the current entry
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenist committed Jan 3, 2024
1 parent cc66f3e commit 0046c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/drawing-engine/src/engine/CanvasHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ export class CanvasHistory {
}
this.currentEntry.blobId = await this.saveBlob(this.engine.htmlCanvas).catch(() => null)
const key = await this.db.actions.add(this.currentEntry)
this.currentEntry.id = key

this.history.unshift(key)
this.truncateHistory()
Expand Down

0 comments on commit 0046c5a

Please sign in to comment.