fix(black-viewports): MPR viewports were turning black if their parent stack had it's properties reset (#5219)
This commit is contained in:
parent
26d77fb149
commit
3ff9a65ef3
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user