From 4f8136ce0c5b1b395ae519b3fcbcc9c990c61bf6 Mon Sep 17 00:00:00 2001 From: Aymeric Toulouse Date: Tue, 24 Oct 2023 14:58:04 +0200 Subject: [PATCH] feat: CQDG-425 map refseq_mrna_id in variant consequences table --- .../VariantEntity/utils/consequences.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/VariantEntity/utils/consequences.tsx b/src/views/VariantEntity/utils/consequences.tsx index 6f56a587..17e1d484 100644 --- a/src/views/VariantEntity/utils/consequences.tsx +++ b/src/views/VariantEntity/utils/consequences.tsx @@ -149,14 +149,17 @@ export const getConsequencesProColumn = (): ProColumnType[] => [ title: intl.get('entities.variant.consequences.refSeq'), dataIndex: 'refseq_mrna_id', key: 'consequences', - render: (refseq_mrna_id: string) => - refseq_mrna_id ? ( - - {refseq_mrna_id} - - ) : ( - TABLE_EMPTY_PLACE_HOLDER - ), + render: (refseq_mrna_id: string[]) => + refseq_mrna_id?.length + ? refseq_mrna_id.map((id, index) => ( + + {id} + + )) + : TABLE_EMPTY_PLACE_HOLDER, width: '10%', }, ];