From fa83860c0a636bf11ace709d53c548387b7b5fb2 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sat, 23 Jul 2022 13:31:02 +0200 Subject: [PATCH] Cleaning code. --- src/components/ListCreateUpdateModal.vue | 4 ---- src/views/List.vue | 2 +- src/views/Lists.vue | 8 ++------ src/views/Login.vue | 4 ---- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/components/ListCreateUpdateModal.vue b/src/components/ListCreateUpdateModal.vue index c7cde6c..9d481f4 100644 --- a/src/components/ListCreateUpdateModal.vue +++ b/src/components/ListCreateUpdateModal.vue @@ -71,7 +71,3 @@ export default { } } - - diff --git a/src/views/List.vue b/src/views/List.vue index 176ebc1..700a196 100644 --- a/src/views/List.vue +++ b/src/views/List.vue @@ -157,7 +157,7 @@ export default { body: JSON.stringify({content: this.searchQ}) }).then(r => { return r.json(); - }).then(result => { + }).then(() => { this.searchQ = ''; this.fetchListAndItems(true); }) diff --git a/src/views/Lists.vue b/src/views/Lists.vue index 0a1948a..aaf7991 100644 --- a/src/views/Lists.vue +++ b/src/views/Lists.vue @@ -72,8 +72,8 @@ export default { 'Content-Type': 'application/json;charset=utf-8', 'X-API-KEY': localStorage.getItem('KEY') } - }).then(r => { - if (r.status !== 404) { + }).then(result => { + if (result.status !== 404) { this.lists = this.lists.filter(r => r.id !== item.id); } }); @@ -103,7 +103,3 @@ export default { } } - - diff --git a/src/views/Login.vue b/src/views/Login.vue index 93f6f09..702983f 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -46,7 +46,3 @@ export default { } } - -