diff --git a/packages/sections/src/evidence/SlapEnrich/Body.jsx b/packages/sections/src/evidence/SlapEnrich/Body.jsx index afa80f7c5..4ba922f61 100644 --- a/packages/sections/src/evidence/SlapEnrich/Body.jsx +++ b/packages/sections/src/evidence/SlapEnrich/Body.jsx @@ -7,9 +7,9 @@ import Description from "./Description"; import { dataTypesMap } from "../../dataTypes"; import SLAPENRICH_QUERY from "./sectionQuery.gql"; import { sentenceCase } from "../../utils/global"; -import { defaultRowsPerPageOptions, naLabel } from "../../constants"; +import { defaultRowsPerPageOptions, naLabel, sectionsBaseSizeQuery } from "../../constants"; -const reactomeUrl = (id) => `https://identifiers.org/reactome:${id}`; +const reactomeUrl = id => `https://identifiers.org/reactome:${id}`; const columns = [ { @@ -32,8 +32,7 @@ const columns = [ {disease.name} ), - filterValue: ({ disease, diseaseFromSource }) => - [disease.name, diseaseFromSource].join(), + filterValue: ({ disease, diseaseFromSource }) => [disease.name, diseaseFromSource].join(), }, { id: "pathwayName", @@ -56,9 +55,7 @@ const columns = [ ), numeric: true, sortable: true, - renderCell: ({ resourceScore }) => ( - - ), + renderCell: ({ resourceScore }) => , }, ]; @@ -67,6 +64,7 @@ function Body({ id, label, entity }) { const variables = { ensemblId: ensgId, efoId, + size: sectionsBaseSizeQuery, }; const request = useQuery(SLAPENRICH_QUERY, { @@ -79,10 +77,8 @@ function Body({ id, label, entity }) { entity={entity} chipText={dataTypesMap.affected_pathway} request={request} - renderDescription={() => ( - - )} - renderBody={(data) => ( + renderDescription={() => } + renderBody={data => (