Skip to content

Commit de4931e

Browse files
committed
disable new gene types for germline
1 parent 4e96d08 commit de4931e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/webapp/app/pages/curation/CurationPage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export const CurationPage = (props: ICurationPageProps) => {
185185
}
186186
}
187187

188+
const geneTypeOptions = isGermline
189+
? [GENE_TYPE.TUMOR_SUPPRESSOR, GENE_TYPE.ONCOGENE]
190+
: [GENE_TYPE.TUMOR_SUPPRESSOR, GENE_TYPE.ONCOGENE, GENE_TYPE.NEITHER, GENE_TYPE.INSUFFICIENT_EVIDENCE];
191+
188192
return props.firebaseInitSuccess &&
189193
!props.loadingGenes &&
190194
props.drugList.length > 0 &&
@@ -216,7 +220,7 @@ export const CurationPage = (props: ICurationPageProps) => {
216220
}
217221
</>
218222
}
219-
options={[GENE_TYPE.TUMOR_SUPPRESSOR, GENE_TYPE.ONCOGENE, GENE_TYPE.NEITHER, GENE_TYPE.INSUFFICIENT_EVIDENCE].map(label => {
223+
options={geneTypeOptions.map(label => {
220224
return {
221225
label,
222226
firebasePath: `${firebaseGenePath}/${GENE_TYPE_KEY[label]}`,

0 commit comments

Comments
 (0)