Skip to content

Commit 4136c0c

Browse files
committed
Fix build: inline TabPanel, fix subMenu type literal, fix self-referencing action
1 parent 425f385 commit 4136c0c

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/lib/src/components/dialogs/DomainDialog.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Dialog } from '@jbrowse/core/ui'
44
import { Tab, Tabs } from '@mui/material'
55

66
import InterProScanPanel from './InterProScanDialog.tsx'
7-
import TabPanel from './TabPanel.tsx'
87
import UserProvidedResultPanel from './UserProvidedDomainsDialog.tsx'
98

109
import type { MsaViewModel } from '../../model.ts'
@@ -35,12 +34,12 @@ export default function LaunchDomainViewDialog({
3534
<Tab value={0} label="Automatic lookup" />
3635
<Tab value={1} label="Manual" />
3736
</Tabs>
38-
<TabPanel value={choice} index={0}>
37+
{choice === 0 ? (
3938
<InterProScanPanel model={model} handleClose={handleClose} />
40-
</TabPanel>
41-
<TabPanel value={choice} index={1}>
39+
) : null}
40+
{choice === 1 ? (
4241
<UserProvidedResultPanel model={model} handleClose={handleClose} />
43-
</TabPanel>
42+
) : null}
4443
</Dialog>
4544
)
4645
}

packages/lib/src/components/header/TreeSettingsMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const TreeSettingsMenu = observer(function ({
6969
? [
7070
{
7171
label: 'Advanced',
72-
type: 'subMenu',
72+
type: 'subMenu' as const,
7373
subMenu: [
7474
{
7575
label: 'Calculate neighbor joining tree (BLOSUM62)',

packages/lib/src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ function stateModelFactory() {
13881388
applyGFFText(gffText: string) {
13891389
const gffRecords = parseGFF(gffText)
13901390
const interProResults = gffToInterProResults(gffRecords)
1391-
self.setInterProAnnotations(interProResults)
1391+
self.interProAnnotations = interProResults
13921392
self.setShowDomains(true)
13931393
},
13941394

0 commit comments

Comments
 (0)