From 7cdf6bb3ed19bcadd90be067a1f1b44ef0840618 Mon Sep 17 00:00:00 2001 From: Mason Cleveland Date: Thu, 29 Jun 2023 20:21:28 -0400 Subject: [PATCH] Address SliceThickness.toFixed TypeError --- .../src/viewports/OHIFCornerstoneSEGViewport.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/cornerstone-dicom-seg/src/viewports/OHIFCornerstoneSEGViewport.tsx b/extensions/cornerstone-dicom-seg/src/viewports/OHIFCornerstoneSEGViewport.tsx index 0df1a29da65..2f5ccb95e0f 100644 --- a/extensions/cornerstone-dicom-seg/src/viewports/OHIFCornerstoneSEGViewport.tsx +++ b/extensions/cornerstone-dicom-seg/src/viewports/OHIFCornerstoneSEGViewport.tsx @@ -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 || '', },