Fixing console errors related to cornerstone
This commit is contained in:
1 parent
04da9310d1
commit
af611109c0
5 files changed
+36
-7
No files matched your search
+7
@@ -18,6 +18,13 @@ export default function (event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the element is enabled and stop here if not
|
||||
try {
|
||||
cornerstone.getEnabledElement(element);
|
||||
} catch (error) {
|
||||
return;
|
||||
}
|
||||
|
||||
const config = cornerstoneTools.bidirectional.getConfiguration();
|
||||
|
||||
const coords = eventData.currentPoints.canvas;
|
||||
|
||||
Reference in new issue
Block a user