Skip to content

Commit

Permalink
remove ternary and tsignore
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinebridge committed Sep 29, 2022
1 parent 46a8d56 commit a7b1a50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 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
Expand Up @@ -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 {
Expand Down

0 comments on commit a7b1a50

Please sign in to comment.