fix(typeError): Address SliceThickness.toFixed TypeError (#3510)

This commit is contained in:
mccle authored and GitHub committed 2023-07-03 10:31:46 -04:00
1 parent f7a435c2f3
commit 12dd5a2619
1 file changed
+2 -2
@@ -344,10 +344,10 @@ function OHIFCornerstoneSEGViewport(props) {
patientSex: PatientSex || '',
patientAge: PatientAge || '',
MRN: PatientID || '',
thickness: SliceThickness ? `${SliceThickness.toFixed(2)}mm` : '',
thickness: SliceThickness ? `${parseFloat(SliceThickness).toFixed(2)}mm` : '',
spacing:
SpacingBetweenSlices !== undefined
? `${SpacingBetweenSlices.toFixed(2)}mm`
? `${parseFloat(SpacingBetweenSlices).toFixed(2)}mm`
: '',
scanner: ManufacturerModelName || '',
},