From b12496c9838e206cedaeadfc3e6d88dbbfb8d20b Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 11 Sep 2018 07:10:32 +0200 Subject: [PATCH] Fixed a bug where a task would not update after marking it as done --- src/components/lists/ShowList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/lists/ShowList.vue b/src/components/lists/ShowList.vue index d30e4817..dd61093e 100644 --- a/src/components/lists/ShowList.vue +++ b/src/components/lists/ShowList.vue @@ -171,7 +171,7 @@ HTTP.post(`tasks/` + e.target.id, {done: e.target.checked}, {headers: {'Authorization': 'Bearer ' + localStorage.getItem('token')}}) .then(response => { - this.updateTaskByID(e.target.id, response.data) + this.updateTaskByID(parseInt(e.target.id), response.data) this.handleSuccess({message: 'The task was successfully ' + (e.target.checked ? 'un-' :'') + 'marked as done.'}) }) .catch(e => {