Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kuehlc opened this issue Aug 1, 2022 · 0 comments

Comments

@kuehlc
Copy link

kuehlc commented Aug 1, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant