Skip to content

Commit

Permalink
correct filterName attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpich committed May 6, 2024
1 parent 8f5139e commit 4310231
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/containers/allelePage/AlleleToDiseaseTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
getDistinctFieldValue } from '../../components/dataTable/utils';
import ProvidersCellCuration from '../../components/dataTable/ProvidersCellCuration';
import useDataTableQuery from '../../hooks/useDataTableQuery';
import { ALLELE_DETAILS_COLUMNS } from '../../components/dataTable/constants';

const AlleleToDiseaseTable = ({alleleId}) => {
const {
Expand All @@ -37,18 +36,20 @@ const AlleleToDiseaseTable = ({alleleId}) => {
filterFormatter: type => <AssociationType type={type} />,
},
{
dataField: 'diseaseQualifier',
dataField: 'diseaseQualifiers',
text: 'Disease Qualifier',
formatter: diseaseQualifiers => <DiseaseQualifiersColumn qualifiers={diseaseQualifiers}/>,
headerStyle: {width: '110px'},
filterable: getDistinctFieldValue(resolvedData, 'diseaseQualifiers'),
filterName: 'diseaseQualifier',
filterType: 'checkbox'
},
{
dataField: 'disease',
dataField: 'object',
text: 'Disease',
formatter: disease => <DiseaseLinkCuration disease={disease} />,
headerStyle: {width: '100px'},
filterName: 'disease',
filterable: true,
},
{
Expand Down

0 comments on commit 4310231

Please sign in to comment.