diff --git a/plugins/linear-genome-view/src/LaunchLinearGenomeView/index.ts b/plugins/linear-genome-view/src/LaunchLinearGenomeView/index.ts index f25a8e17223..e284ee56078 100644 --- a/plugins/linear-genome-view/src/LaunchLinearGenomeView/index.ts +++ b/plugins/linear-genome-view/src/LaunchLinearGenomeView/index.ts @@ -54,15 +54,6 @@ export default (pluginManager: PluginManager) => { ) } - await handleSelectedRegion({ input: loc, model: view, assembly: asm }) - - const idsNotFound = [] as string[] - tracks.forEach(track => tryTrack(view, track, idsNotFound)) - if (idsNotFound.length) { - throw new Error( - `Could not resolve identifiers: ${idsNotFound.join(',')}`, - ) - } if (tracklist) { view.activateTrackSelector() } @@ -78,6 +69,16 @@ export default (pluginManager: PluginManager) => { view.setHighlight(location) } } + + await handleSelectedRegion({ input: loc, model: view, assembly: asm }) + + const idsNotFound = [] as string[] + tracks.forEach(track => tryTrack(view, track, idsNotFound)) + if (idsNotFound.length) { + throw new Error( + `Could not resolve identifiers: ${idsNotFound.join(',')}`, + ) + } } catch (e) { session.notify(`${e}`, 'error') throw e