Skip to content

Commit 5f92940

Browse files
committed
feat: use stringifyValues for paired end on project detail (#3759)
1 parent d1bc11c commit 5f92940

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

explorer/app/components/Index/common/constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const {
3030
NUCLEIC_ACID_SOURCE,
3131
ORGAN_PART,
3232
ORGANISM_TYPE,
33-
PAIRED_END,
3433
PHENOTYPIC_SEX,
3534
PLATFORM,
3635
REPORTED_ETHNICITY,
@@ -94,7 +93,6 @@ export const PLURALIZED_METADATA_LABEL = {
9493
[NUCLEIC_ACID_SOURCE]: "nucleic acid sources",
9594
[ORGANISM_TYPE]: "organism types",
9695
[ORGAN_PART]: "organ parts",
97-
[PAIRED_END]: "values",
9896
[PHENOTYPIC_SEX]: "phenotypic sexes",
9997
[PLATFORM]: "platforms",
10098
[REPORTED_ETHNICITY]: "reported ethnicities",

explorer/app/components/Index/common/entities.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export enum METADATA_KEY {
2424
NUCLEIC_ACID_SOURCE = "NUCLEIC_ACID_SOURCE",
2525
ORGAN_PART = "ORGAN_PART",
2626
ORGANISM_TYPE = "ORGANISM_TYPE",
27-
PAIRED_END = "PAIRED_END",
2827
PHENOTYPIC_SEX = "PHENOTYPIC_SEX",
2928
PLATFORM = "PLATFORM",
3029
REPORTED_ETHNICITY = "REPORTED_ETHNICITY",

explorer/app/viewModelBuilders/azul/hca-dcp/common/dataSummaryMapper/dataSummaryMapper.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { LABEL } from "@clevercanary/data-explorer-ui/lib/apis/azul/common/entities";
2+
import { stringifyValues } from "@clevercanary/data-explorer-ui/lib/common/utils";
23
import { Value } from "@clevercanary/data-explorer-ui/lib/components/common/KeyValuePairs/keyValuePairs";
34
import { NTagCell } from "@clevercanary/data-explorer-ui/lib/components/Index/components/NTagCell/nTagCell";
45
import { ANCHOR_TARGET } from "@clevercanary/data-explorer-ui/lib/components/Links/common/entities";
@@ -234,13 +235,7 @@ export function mapProjectDataSummary(
234235
values: nucleicAcidSource,
235236
})
236237
); // Nucleic Acid Source
237-
details.set(
238-
DATA_SUMMARY.PAIRED_END,
239-
NTagCell({
240-
label: getPluralizedMetadataLabel(METADATA_KEY.PAIRED_END),
241-
values: pairedEnd,
242-
})
243-
); // Paired End
238+
details.set(DATA_SUMMARY.PAIRED_END, stringifyValues(pairedEnd)); // Paired End
244239
// Workflow will not display if "Unspecified".
245240
if (isWorkflowSpecified(workflow)) {
246241
details.set(DATA_SUMMARY.WORKFLOW, getWorkflowValue(workflow)); // Analysis Protocol

0 commit comments

Comments
 (0)