diff --git a/src/components/Connections.tsx b/src/components/Connections.tsx index 2b0787a..8c4afd1 100644 --- a/src/components/Connections.tsx +++ b/src/components/Connections.tsx @@ -183,7 +183,7 @@ function Connections() { Summary map shows the connections of the selected connection origin and end organ with phenotypes. Select individual squares to view the details of each connections. - + - + ) } diff --git a/src/services/summaryHeatmapService.ts b/src/services/summaryHeatmapService.ts index a063744..de5529e 100644 --- a/src/services/summaryHeatmapService.ts +++ b/src/services/summaryHeatmapService.ts @@ -169,7 +169,7 @@ export function calculateSecondaryConnections( const ksPhenotypes = knowledgeStatementIds.map(ksId => knowledgeStatements[ksId].phenotype).filter(phenotype => phenotype !== ''); const phenotypeColorsSet = new Set(); - const unknownFilter = phenotypes.find(p => p.label === OTHER_PHENOTYPE_LABEL); + const unknownFilter = phenotypes.find(p => p.label === 'other'); ksPhenotypes.length === 0 ? phenotypeColorsSet.add(unknownFilter?.color || '') : ksPhenotypes.map(phenotype => { const phn = phenotypes.find(p => p.label === phenotype); diff --git a/src/settings.ts b/src/settings.ts index 8ba9b29..fab0b88 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -8,6 +8,7 @@ export const OTHER_X_AXIS_ID = 'OTHER_X' export const OTHER_X_AXIS_LABEL = 'Other' export const OTHER_PHENOTYPE_LABEL = 'other' export const SYNONYMS_TITLE = "synonyms" +export const OTHER_LABEL = 'other' export const FIXED_FOUR_PHENOTYPE_COLORS_ARRAY = [ 'rgba(155, 24, 216, 1)',