Browse Source

Merge pull request #1064 from doccano/fix/#1043

Fix approve annotation documents function
pull/1066/head
Hiroki Nakayama 3 years ago
committed by GitHub
parent
commit
2cbd0cb914
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions
  1. 4
      app/server/static/components/annotationMixin.js

4
app/server/static/components/annotationMixin.js

@ -238,9 +238,7 @@ export default {
const approved = !this.documentAnnotationsAreApproved;
HTTP.post(`docs/${document.id}/approve-labels`, { approved }).then((response) => {
const documents = this.docs.slice();
documents[this.pageNumber] = response.data;
this.docs = documents;
Object.assign(this.docs[this.pageNumber], response.data);
});
},
},

Loading…
Cancel
Save