Skip to content

Commit

Permalink
Fix for some sessions that don't instantiate sessionAssemblies e.g. b…
Browse files Browse the repository at this point in the history
…are bones tests
  • Loading branch information
cmdcolin committed Feb 19, 2021
1 parent f576ea4 commit 1956a70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/assemblyManager/assemblyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function assemblyManagerFactory(
get assemblyList() {
return [
...getParent(self).jbrowse.assemblies.slice(),
...getParent(self).session.sessionAssemblies.slice(),
...(getParent(self).session.sessionAssemblies?.slice() || []),
]
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Object {
"drawerWidth": 384,
"margin": 0,
"name": "testSession",
"sessionAssemblies": Array [],
"sessionConnections": Array [],
"sessionTracks": Array [],
"views": Array [],
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-web/src/sessionModelFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ declare interface ReferringNode {

export default function sessionModelFactory(
pluginManager: PluginManager,
assemblyConfigSchemasType: any,
assemblyConfigSchemasType = types.frozen(), // if not using sessionAssemblies
) {
const minDrawerWidth = 128
return types
Expand Down

0 comments on commit 1956a70

Please sign in to comment.