Skip to content

Commit

Permalink
KANBAN-591 remove disease sort from allele table
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgibs committed Jan 23, 2025
1 parent bedcef8 commit c4d452f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
6 changes: 4 additions & 2 deletions src/components/dataTable/ExperimentalConditionCellCuration.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import React from 'react';
import hash from 'object-hash';

const ExperimentalConditionCellCuration = ({ conditions }) => {
return conditions? (
<dl>
{
conditions.map(condition=> {
const { conditions, id } = condition;
const { conditions } = condition;
const summaries = conditions.map(({conditionSummary}) => conditionSummary);
const key = hash(condition);
return (
<React.Fragment key={id}>
<React.Fragment key={key}>
<dt>{condition.conditionRelationType.name.replace(/_/, ' ')}:</dt>
<dd>
{summaries.map(summary => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/dataTable/evidenceCodesCellCuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const EvidenceCodesCellCuration = ({evidenceCodes}) => {

EvidenceCodesCellCuration.propTypes = {
evidenceCodes: PropTypes.arrayOf(PropTypes.shape({
id: PropTypes.string,
id: PropTypes.number,
name: PropTypes.string,
displaySynonym: PropTypes.string,
})),
Expand Down
2 changes: 1 addition & 1 deletion src/containers/diseasePage/DiseaseToAlleleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const DiseaseToAlleleTable = ({id}) => {
columns={columns}
data={rows}
downloadUrl={`/api/disease/${id}/alleles/download`}
keyField='primaryKey'
keyField='uniqueId'
sortOptions={sortOptions}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/containers/diseasePage/DiseaseToGeneTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const DiseaseToGeneTable = ({ id }) => {
columns={columns}
data={rows}
downloadUrl={`/api/disease/${id}/genes/download`}
keyField='primaryKey'
keyField='uniqueId'
sortOptions={sortOptions}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/containers/diseasePage/DiseaseToModelTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const DiseaseToModelTable = ({id}) => {
columns={columns}
data={data}
downloadUrl={`/api/disease/${id}/models/download`}
keyField='primaryKey'
keyField='uniqueId'
sortOptions={sortOptions}
/>
);
Expand Down
4 changes: 0 additions & 4 deletions src/containers/genePage/alleleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,6 @@ const AlleleTable = ({ isLoadingGene, gene, geneId}) => {
// value: 'alleleSymbol',
// label: 'Allele symbol',
// }, // default
{
value: 'disease',
label: 'Associated Human Disease',
},
{
value: 'variant',
label: 'Variant',
Expand Down

0 comments on commit c4d452f

Please sign in to comment.