Skip to content

Commit

Permalink
Fix crash in text-index on tracks that are missing adapters. Fixes #2349
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Sep 22, 2021
1 parent 0881474 commit 5769c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/commands/text-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export default class TextIndex extends JBrowseCommand {
}
return currentTrack
})
.filter(track => supported(track.adapter.type))
.filter(track => supported(track.adapter?.type))
.filter(track =>
assemblyName ? track.assemblyNames.includes(assemblyName) : true,
)
Expand Down

0 comments on commit 5769c7e

Please sign in to comment.