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

Fix: annotation mode exits on wrong button and fetch annotations returns non-promise #363

Merged
merged 2 commits into from
Sep 3, 2017

Conversation

Minh-Ng
Copy link
Contributor

@Minh-Ng Minh-Ng commented Sep 2, 2017

  • Annotation mode exits using the wrong button element. This causes the wrong one to become in-active
  • When calling fetchannotations() without permissions to view all or own annotations, a non-promise unexpectedly returned.

@@ -543,7 +545,7 @@ class Annotator extends EventEmitter {
// Do not load any pre-existing annotations if the user does not have
// the correct permissions
if (!this.permissions.canViewAllAnnotations || !this.permissions.canViewOwnAnnotations) {
return this.threads;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shoot. Great catch! Thanks!

@Minh-Ng Minh-Ng merged commit aed6288 into box:master Sep 3, 2017
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

Successfully merging this pull request may close these issues.

2 participants