Skip to content

Commit

Permalink
Add working spec synteny
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed May 24, 2022
1 parent a9d8eb2 commit 6d33d08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default function LaunchLinearSyntenyView(pluginManager: PluginManager) {
),
)

await Promise.all(model.views.map(view => when(() => view.initialized)))

const idsNotFound = [] as string[]
for (let i = 0; i < views.length; i++) {
const view = model.views[i]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const ViewContainer = observer(
const padWidth = theme.spacing(1)

useEffect(() => {
console.log(width, isAlive(view), padWidth)
if (width && isAlive(view)) {
view.setWidth(width - padWidth * 2)
}
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-web/src/SessionLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ interface ViewSpec {
export function loadSessionSpec(
{
views,
sessionTracks,
sessionTracks = [],
}: {
views: ViewSpec[]
sessionTracks: unknown[]
Expand Down

0 comments on commit 6d33d08

Please sign in to comment.