From 5769c7e5c62e76675954c734fd507e5cada971f2 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 21 Sep 2021 20:22:16 -0400 Subject: [PATCH] Fix crash in text-index on tracks that are missing adapters. Fixes #2349 --- products/jbrowse-cli/src/commands/text-index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/products/jbrowse-cli/src/commands/text-index.ts b/products/jbrowse-cli/src/commands/text-index.ts index cb4170a37d..356ffe1c0b 100644 --- a/products/jbrowse-cli/src/commands/text-index.ts +++ b/products/jbrowse-cli/src/commands/text-index.ts @@ -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, )