fix: 🐛 - Put guards in all places that a cornerstone re-render (#1899)
* fix: 🐛 - Put guards in all places that a cornerstone re-render
This commit is contained in:
1 parent
029f8af4c7
commit
451f7eab92
11 files changed
+53
-29
No files matched your search
@@ -329,7 +329,9 @@ const mapDispatchToProps = (dispatch, ownProps) => {
|
||||
measurementApi.syncMeasurementsAndToolData();
|
||||
|
||||
cornerstone.getEnabledElements().forEach(enabledElement => {
|
||||
cornerstone.updateImage(enabledElement.element);
|
||||
if (enabledElement.image) {
|
||||
cornerstone.updateImage(enabledElement.element);
|
||||
}
|
||||
});
|
||||
|
||||
// Needs to update viewports.layout state to set layout
|
||||
|
||||
Reference in new issue
Block a user