Skip to content

Commit

Permalink
Fix tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 19, 2021
1 parent d9641b0 commit f8429fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions packages/core/assemblyManager/assemblyManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ import {
} from 'mobx-state-tree'
import { when } from '../util'
import { readConfObject } from '../configuration'
import {
AnyConfigurationModel,
AnyConfigurationSchemaType,
} from '../configuration/configurationSchema'
import { AnyConfigurationModel } from '../configuration/configurationSchema'

import assemblyFactory from './assembly'
import PluginManager from '../PluginManager'
Expand All @@ -32,10 +29,12 @@ export default function assemblyManagerFactory(
},

get assemblyList() {
// name is the explicit identifier and can be accessed without getConf,
// hence the union with {name:string}
return [
...getParent(self).jbrowse.assemblies,
...(getParent(self).session.sessionAssemblies || []),
] as AnyConfigurationModel[]
] as (AnyConfigurationModel & { name: string })[]
},

get rpcManager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import GetAppIcon from '@material-ui/icons/GetApp'
import TextField from '@material-ui/core/TextField'

// core
import { getSession, findParentThatIs } from '@jbrowse/core/util'
import { getSession } from '@jbrowse/core/util'
import { Feature } from '@jbrowse/core/util/simpleFeature'
// other
import { formatSeqFasta, SeqChunk } from '@jbrowse/core/util/formatFastaStrings'
Expand Down
2 changes: 1 addition & 1 deletion plugins/linear-genome-view/src/LinearGenomeView/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function stateModelFactory(pluginManager: PluginManager) {
const assembliesInitialized = this.assemblyNames.every(assemblyName => {
if (
assemblyManager.assemblyList
?.map((asm: { name: string }) => asm.name)
?.map(asm => asm.name)
.includes(assemblyName)
) {
return (assemblyManager.get(assemblyName) || {}).initialized
Expand Down

0 comments on commit f8429fb

Please sign in to comment.