Skip to content

Commit 3e517cc

Browse files
authored
Merge branch 'develop' into feat/DEVSU-2829-display-flags-column-in-reports
2 parents 1a81156 + 80ec189 commit 3e517cc

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

app/views/ReportView/components/RapidSummary/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,18 +383,20 @@ const RapidSummary = ({
383383
const { genomeTmb } = report;
384384

385385
let tmbDisplayValue = 'No data available';
386+
387+
if (genomeTmb) {
388+
tmbDisplayValue = genomeTmb.toFixed(2);
389+
}
386390

387391
if (tmburMutBur) {
388392
const { tmbHidden, adjustedTmb } = tmburMutBur;
389393
if (tmbHidden) {
390394
tmbDisplayValue = null;
391395
} else if (adjustedTmb != null) {
392396
tmbDisplayValue = adjustedTmb.toFixed(2);
393-
} else if (genomeTmb) {
394-
tmbDisplayValue = genomeTmb.toFixed(2);
395397
}
396398
}
397-
399+
398400
return ([
399401
{
400402
term: 'Pathology Tumour Content',

app/views/ReportView/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ const ReportView = (): JSX.Element => {
170170
<div className="report__content-container">
171171
{Boolean(report) && (
172172
<ReportToolbar
173-
diagnosis={report.patientInformation.diagnosis}
174-
patientId={report.patientId}
175-
type={report.template.name}
176-
state={report.state}
173+
diagnosis={report?.patientInformation?.diagnosis}
174+
patientId={report?.patientId}
175+
type={report?.template.name}
176+
state={report?.state}
177177
isSidebarVisible={isSidebarVisible}
178178
onSidebarToggle={setIsSidebarVisible}
179179
/>

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "ipr-client",
4-
"version": "7.2.0",
4+
"version": "7.3.1",
55
"keywords": [],
66
"license": "GPL-3.0",
77
"sideEffects": false,

0 commit comments

Comments
 (0)