Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/feature/ESCKAN-20-new'
Browse files Browse the repository at this point in the history
Conflicts:
	src/components/Connections.tsx
	src/components/SummaryFiltersDropdown.tsx
	src/services/summaryHeatmapService.ts
  • Loading branch information
D-GopalKrishna committed May 27, 2024
2 parents 494137f + e5f2241 commit 04bfa25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
</Typography>
</Box>
<SummaryFiltersDropdown nerves={nerves} phenotypes={phenotypes} />
<SummaryFiltersDropdown nerves={nerves} phenotypes={phenotypes} />
<HeatmapGrid
yAxis={yAxis}
setYAxis={setYAxis}
Expand All @@ -196,7 +196,7 @@ function Connections() {
/>
</Box>

<PhenotypeLegend phenotypes={phenotypes} />
<PhenotypeLegend phenotypes={phenotypes} />
</>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/summaryHeatmapService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function calculateSecondaryConnections(
const ksPhenotypes = knowledgeStatementIds.map(ksId => knowledgeStatements[ksId].phenotype).filter(phenotype => phenotype !== '');
const phenotypeColorsSet = new Set<string>();

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);
Expand Down
1 change: 1 addition & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down

0 comments on commit 04bfa25

Please sign in to comment.