Skip to content

Commit 06c0a95

Browse files
committed
Merge branch 'feat/DEVSU-2814-provide-nct-links-in-client-when-nct-id-is-available' of github.com:bcgsc/pori_ipr_client into bugfix/DEVSU-2893-external-source-column-appears-twice-in-kb-match-section
2 parents 80ec189 + 767e521 commit 06c0a95

File tree

2 files changed

+2
-2
lines changed
  • app

2 files changed

+2
-2
lines changed

app/components/DataTable/components/ArrayCellRenderer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const RenderArrayCell = (fieldPath: string, isLink: boolean = false, useValue: b
3434
if (firstVal?.match(/^\d+$/)) {
3535
link = `https://ncbi.nlm.nih.gov/pubmed/${firstVal}`;
3636
validLink = true;
37-
} else if (firstVal?.match(/^nct\d+$/)) {
37+
} else if (firstVal?.match(/^NCT\d+$/)) {
3838
link = `https://clinicaltrials.gov/study/${firstVal}`;
3939
validLink = true;
4040
} else if (urlRegex.test(firstVal)) {

app/views/ReportView/components/KbMatches/columnDefs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const columnDefs: ColDef[] = [
7777
valueGetter: (params) => {
7878
const { data: { externalSource, externalStatementId, reference } } = params;
7979
return externalSource === 'clinicaltrials.gov'
80-
? externalStatementId
80+
? externalStatementId?.toUpperCase()
8181
: reference;
8282
},
8383
cellRendererFramework: ArrayCell('reference', true, true),

0 commit comments

Comments
 (0)