fix(black-viewports): MPR viewports were turning black if their parent stack had it's properties reset (#5219)

This commit is contained in:
Ibrahim authored and GitHub committed 2025-07-16 14:40:20 -04:00
1 parent 26d77fb149
commit 3ff9a65ef3
1 file changed
+5
@@ -345,6 +345,11 @@ class CornerstoneViewportService extends PubSubService implements IViewportServi
delete properties?.voiRange; delete properties?.voiRange;
delete properties?.VOILUTFunction; delete properties?.VOILUTFunction;
} }
if (properties?.colormap) {
if (properties.colormap?.opacity?.length === 0) {
delete properties.colormap.opacity;
}
}
return properties; return properties;
}; };