From 06ba9c8acdeee6923380476f0ede86ecb0dfb027 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Tue, 24 Nov 2020 17:04:51 +0900 Subject: [PATCH] Fix approve annotation documents function, fix #1043 --- app/server/static/components/annotationMixin.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/server/static/components/annotationMixin.js b/app/server/static/components/annotationMixin.js index 6dbd9cb1..ce4ee85c 100644 --- a/app/server/static/components/annotationMixin.js +++ b/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); }); }, },