cornerstone icon indicating copy to clipboard operation
cornerstone copied to clipboard

cornerstone.getEnabledElement causes console error on element that is not enabled

Open kuehlc opened this issue 1 year ago • 0 comments

@dannyrb I was looking at the docs and it mentions to store cornerstone.getEnabledElement(element) in a variable and then check the variable to see if it is enabled or not before proceeding. The issue is that it causes an error (sometimes multiple) in the console when calling this function on an element that isn't enabled. Is there another function for this type of check that won't give an error? This is happening in an Angular 11 application.

kuehlc avatar Aug 01 '22 20:08 kuehlc