-
Notifications
You must be signed in to change notification settings - Fork 7
Add Types to Annotation Examples #159
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
Conversation
miguelcalderon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| annotations.forEach(async (annotation: Annotation) => { | ||
| const updatedAnnotation = annotation.set("noView", annotationsHidden); | ||
| await instance.update(updatedAnnotation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optionally you could persist the updated annotations in an array, and then call update() only once with all the updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added here: 311ff1c
No description provided.