Skip to content

Commit

Permalink
lint and correct default value for layout
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinebridge committed Mar 1, 2024
1 parent 8e465ce commit 1bd1797
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions packages/web-core/src/BaseWebSession/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
types,
SnapshotIn,
Instance,
onAction,
} from 'mobx-state-tree'
import TextSearchManager from '@jbrowse/core/TextSearch/TextSearchManager'
import { BaseTrackConfig } from '@jbrowse/core/pluggableElementTypes'
Expand Down Expand Up @@ -412,16 +411,6 @@ export function BaseWebSession({
localStorageSetItem('themeName', self.themeName)
}),
)
addDisposer(
self,
onAction(self, param => {
const { name, path, args } = param

// doesn't link showTrack/hideTrack, doesn't make sense in
// synteny views most time
// console.log({ name, path, args })
}),
)
},
}))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const RenderedBlocks = observer(function ({
model: BaseLinearDisplayModel
}) {
const { classes } = useStyles()
const { blockDefinitions, blockState, layoutMaxHeight } = model
const { blockDefinitions, blockState } = model
return (
<>
{blockDefinitions.map(block => {
Expand Down
2 changes: 1 addition & 1 deletion plugins/linear-genome-view/src/LinearBasicDisplay/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function stateModelFactory(configSchema: AnyConfigurationSchemaType) {
*/
adjustLayoutHeight: types.optional(
types.string,
() => localStorageGetItem('lgv-adjustLayoutHeight') || '',
() => localStorageGetItem('lgv-adjustLayoutHeight') || 'off',
),
}),
)
Expand Down

0 comments on commit 1bd1797

Please sign in to comment.