Fix: issue #4759 Enable proper DICOM image rendering when Rescale parameters are set to null (#5003)

This commit is contained in:
Tang Cheng authored and GitHub committed 2025-04-30 12:24:06 -04:00
1 parent b21ee9bc5b
commit 0bb9b17636
1 file changed
+4 -1
@@ -215,7 +215,10 @@ class MetadataProvider {
break;
case WADO_IMAGE_LOADER_TAGS.MODALITY_LUT_MODULE:
const { RescaleIntercept, RescaleSlope } = instance;
if (RescaleIntercept === undefined || RescaleSlope === undefined) {
// Early return if RescaleIntercept or RescaleSlope are not
// present (undefined) or explicitly set to null. We use loose
// equality in this case to check for *null* or *undefined*.
if (RescaleIntercept == null || RescaleSlope == null) {
return;
}