From 73a83f84e47b56dab3274f648fa49ab8d4525278 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Fri, 20 Dec 2024 11:37:43 -0500 Subject: [PATCH] fix --- .../core/src/RenderingEngine/helpers/setDefaultVolumeVOI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/RenderingEngine/helpers/setDefaultVolumeVOI.ts b/packages/core/src/RenderingEngine/helpers/setDefaultVolumeVOI.ts index d3aa9572b..d8914209f 100644 --- a/packages/core/src/RenderingEngine/helpers/setDefaultVolumeVOI.ts +++ b/packages/core/src/RenderingEngine/helpers/setDefaultVolumeVOI.ts @@ -86,7 +86,7 @@ function getVOIFromMetadata(imageVolume: IImageVolume): VOIRange | undefined { const imageId = imageIds[imageIdIndex]; const voiLutModule = metaData.get('voiLutModule', imageId); if (voiLutModule && voiLutModule.windowWidth && voiLutModule.windowCenter) { - voi.voiLUTFunction = voiLutModule.voiLUTFunction; + voi.voiLUTFunction = voiLutModule?.voiLUTFunction; const { windowWidth, windowCenter } = voiLutModule; const width = Array.isArray(windowWidth) ? windowWidth[0] : windowWidth; const center = Array.isArray(windowCenter)