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)