Skip to content

Commit 1f30906

Browse files
committed
Updates
1 parent 2fa0148 commit 1f30906

2 files changed

Lines changed: 654 additions & 632 deletions

File tree

src/LaunchProteinView/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ function extendStateModel(stateModel: IAnyModelType) {
2424
contextMenuItems() {
2525
const feature = self.contextMenuFeature
2626
const track = getContainingTrack(self)
27+
const showProteinMenuItem =
28+
feature &&
29+
['gene', 'mRNA', 'transcript'].includes(feature.get('type'))
2730
return [
2831
...superContextMenuItems(),
29-
...(feature
32+
...(showProteinMenuItem
3033
? [
3134
{
3235
label: 'Launch protein view',

0 commit comments

Comments
 (0)