From a7b1a50e3e0c55483ee6f4e864a5c86856008315 Mon Sep 17 00:00:00 2001 From: Caroline Bridge Date: Thu, 29 Sep 2022 09:25:41 -0400 Subject: [PATCH] remove ternary and tsignore --- packages/core/pluggableElementTypes/ViewType.ts | 2 +- .../src/LinearGenomeView/components/SearchBox.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/pluggableElementTypes/ViewType.ts b/packages/core/pluggableElementTypes/ViewType.ts index f179dd7689..8f87a6f58d 100644 --- a/packages/core/pluggableElementTypes/ViewType.ts +++ b/packages/core/pluggableElementTypes/ViewType.ts @@ -32,7 +32,7 @@ export default class ViewType extends PluggableElementBase { super(stuff) this.ReactComponent = stuff.ReactComponent this.stateModel = stuff.stateModel - this.extendedName = stuff.extendedName ? stuff.extendedName : undefined + this.extendedName = stuff.extendedName if (!this.ReactComponent) { throw new Error(`no ReactComponent defined for view ${this.name}`) } diff --git a/plugins/linear-genome-view/src/LinearGenomeView/components/SearchBox.tsx b/plugins/linear-genome-view/src/LinearGenomeView/components/SearchBox.tsx index 99aa7b1923..42e5a5b1ca 100644 --- a/plugins/linear-genome-view/src/LinearGenomeView/components/SearchBox.tsx +++ b/plugins/linear-genome-view/src/LinearGenomeView/components/SearchBox.tsx @@ -51,7 +51,6 @@ function SearchBox({ // 3) else assume it's a locstring and navigate to it async function handleSelectedRegion(option: BaseResult) { try { - // @ts-ignore if (option.hasLocation()) { navToOption(option) } else {