fix(typeError): Address SliceThickness.toFixed TypeError (#3510)
This commit is contained in:
parent
f7a435c2f3
commit
12dd5a2619
@ -344,10 +344,10 @@ function OHIFCornerstoneSEGViewport(props) {
|
|||||||
patientSex: PatientSex || '',
|
patientSex: PatientSex || '',
|
||||||
patientAge: PatientAge || '',
|
patientAge: PatientAge || '',
|
||||||
MRN: PatientID || '',
|
MRN: PatientID || '',
|
||||||
thickness: SliceThickness ? `${SliceThickness.toFixed(2)}mm` : '',
|
thickness: SliceThickness ? `${parseFloat(SliceThickness).toFixed(2)}mm` : '',
|
||||||
spacing:
|
spacing:
|
||||||
SpacingBetweenSlices !== undefined
|
SpacingBetweenSlices !== undefined
|
||||||
? `${SpacingBetweenSlices.toFixed(2)}mm`
|
? `${parseFloat(SpacingBetweenSlices).toFixed(2)}mm`
|
||||||
: '',
|
: '',
|
||||||
scanner: ManufacturerModelName || '',
|
scanner: ManufacturerModelName || '',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user