Skip to content

Commit

Permalink
Fix ts(4058) in snapshot processor
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 8, 2023
1 parent 87c31df commit 2b04342
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/jbrowse-plugin-apollo/src/session/ClientDataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,12 @@ export function clientDataStoreFactory(
// assembly and feature data isn't actually reloaded on reload unless we delete it from the snap
return types.snapshotProcessor(clientStoreType, {
preProcessor(snap: SnapshotIn<typeof clientStoreType>) {
return { ...snap, assemblies: {} }
snap.assemblies = {}
return snap
},
postProcessor(snap: SnapshotOut<typeof clientStoreType>) {
return { ...snap, assemblies: {} }
snap.assemblies = {}
return snap
},
})
}

0 comments on commit 2b04342

Please sign in to comment.