Skip to content

Commit

Permalink
Fallback to named query snapshot if none exists on the session
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Mar 26, 2024
1 parent 0b294b3 commit 58d7751
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/zui/src/models/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ export class Session extends DomainModel<Attrs> {
console.warn(
"Did not find snapshot on the session, falling back to named query snapshot"
)
return EditorSnapshot.find(this.attrs.parentId, this.attrs.snapshotId) // remove after some time has gone by
}
return null // comment the next line back in for back compat
// return EditorSnapshot.find(this.attrs.parentId, this.attrs.snapshotId)
}

get snapshots() {
Expand Down

0 comments on commit 58d7751

Please sign in to comment.