Browse Source

Fix approve annotation documents function, fix #1043

pull/1064/head
Hironsan 4 years ago
parent
commit
06ba9c8acd
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