Skip to content

Commit 61401aa

Browse files
committed
feat(frontend): fixup typecheck
1 parent 5441f91 commit 61401aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

browser/src/ConstraintTable/ConstraintTable.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ const ConstraintTable = ({ datasetId, geneOrTranscript }: Props) => {
126126
{['controls', 'non_neuro', 'non_cancer', 'non_topmed'].some((subset) =>
127127
datasetId.includes(subset)
128128
) && <p>Constraint is based on the full gnomAD dataset, not the selected subset.</p>}
129-
<GnomadConstraintTable geneFlags={geneOrTranscript.flags} constraint={gnomadConstraint!} />
129+
<GnomadConstraintTable
130+
geneFlags={isGene(geneOrTranscript) ? (geneOrTranscript as Gene).flags : []}
131+
constraint={gnomadConstraint!}
132+
/>
130133
{isGene(geneOrTranscript) && (
131134
<p style={{ marginBottom: 0 }}>
132135
Constraint metrics based on {transcriptDescription} transcript (

0 commit comments

Comments
 (0)