From 4c9e68cb90740ce7967dd748e44c3792e21cf87c Mon Sep 17 00:00:00 2001
From: Regis <boudinot.regis@yahoo.com>
Date: Wed, 26 Apr 2017 17:34:17 -0600
Subject: [PATCH] change 'body' to 'data' after 'JSON.parse'

---
 .../issue_show/issue_title_description.vue       | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/app/assets/javascripts/issue_show/issue_title_description.vue b/app/assets/javascripts/issue_show/issue_title_description.vue
index d13e02b8cc0..e21667f2ac7 100644
--- a/app/assets/javascripts/issue_show/issue_title_description.vue
+++ b/app/assets/javascripts/issue_show/issue_title_description.vue
@@ -39,11 +39,11 @@ export default {
   },
   methods: {
     renderResponse(res) {
-      const body = JSON.parse(res.body);
-      this.triggerAnimation(body);
+      const data = JSON.parse(res.body);
+      this.triggerAnimation(data);
     },
-    updateTaskHTML(body) {
-      this.taskStatus = body.task_status;
+    updateTaskHTML(data) {
+      this.taskStatus = data.task_status;
       document.querySelector('#task_status').innerText = this.taskStatus;
     },
     elementsToVisualize(noTitleChange, noDescriptionChange) {
@@ -80,13 +80,13 @@ export default {
         clearTimeout(this.timeoutId);
       }, 0);
     },
-    triggerAnimation(body) {
+    triggerAnimation(data) {
       // always reset to false before checking the change
       this.descriptionChange = false;
 
-      const { title, description } = body;
-      this.descriptionText = body.description_text;
-      this.updateTaskHTML(body);
+      const { title, description } = data;
+      this.descriptionText = data.description_text;
+      this.updateTaskHTML(data);
       /**
       * since opacity is changed, even if there is no diff for Vue to update
       * we must check the title/description even on a 304 to ensure no visual change
-- 
GitLab