Browse Source
Merge pull request #1064 from doccano/fix/#1043
Fix approve annotation documents function
pull/1066/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
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); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|