Skip to content

Commit

Permalink
remove ternary and tsignore
Browse files Browse the repository at this point in the history
snaps
  • Loading branch information
carolinebridge authored and cmdcolin committed Sep 29, 2022
1 parent 46a8d56 commit 3df332f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/pluggableElementTypes/ViewType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { observer } from 'mobx-react'
import { useTheme, alpha } from '@mui/material/styles'
import { useTheme, alpha } from '@mui/material'
import { makeStyles } from 'tss-react/mui'
import { getSession } from '@jbrowse/core/util'
import BaseResult from '@jbrowse/core/TextSearch/BaseResults'
Expand Down Expand Up @@ -51,13 +51,11 @@ 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 {
const input = option.getLabel()
const [ref, rest] = splitLast(input, ':')
// @ts-ignore
const allRefs = assembly?.allRefNamesWithLowerCase || []
if (
allRefs.includes(input) ||
Expand Down

0 comments on commit 3df332f

Please sign in to comment.