From ab5348d5a1a35d0c56daf547e341d3a574aedeb4 Mon Sep 17 00:00:00 2001 From: weryques Date: Fri, 23 Mar 2018 15:49:11 -0300 Subject: [PATCH] Eslint suggestions --- src/admin/components/edition/category-edition-form.vue | 2 +- src/admin/components/lists/categories-list.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/components/edition/category-edition-form.vue b/src/admin/components/edition/category-edition-form.vue index b36fcd530..6d7422845 100644 --- a/src/admin/components/edition/category-edition-form.vue +++ b/src/admin/components/edition/category-edition-form.vue @@ -223,7 +223,7 @@ .then(samplePermalink => { let promise = htmlToJSON.parse(samplePermalink, { - permalink($doc, $) { + permalink($doc) { return $doc.find('#editable-post-name-full').text(); } }); diff --git a/src/admin/components/lists/categories-list.vue b/src/admin/components/lists/categories-list.vue index d95ae5af8..e30740e32 100644 --- a/src/admin/components/lists/categories-list.vue +++ b/src/admin/components/lists/categories-list.vue @@ -127,7 +127,7 @@ message: this.$i18n.get('info_warning_category_delete'), onConfirm: () => { this.deleteCategory(categoryId) - .then((res) => { + .then(() => { this.$toast.open({ duration: 3000, message: this.$i18n.get('info_category_deleted'), @@ -140,7 +140,7 @@ this.selectedCategories.splice(i, 1); } }) - .catch((error) => { + .catch(() => { this.$toast.open({ duration: 3000, message: this.$i18n.get('info_error_deleting_category'),