From 8d1112146beff49d19eb025f4fa7c36353aa7872 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 17 Oct 2022 08:30:36 +0200 Subject: Avoid duplicate `delete` check If a delete handler is defined, skip check twice if it is valid --- components/VTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/VTable.vue') diff --git a/components/VTable.vue b/components/VTable.vue index 5fb2ad2..225c3f9 100644 --- a/components/VTable.vue +++ b/components/VTable.vue @@ -64,7 +64,7 @@ import UserAvatar from "@/components/UserAvatar.vue"; export default { - props: ["keys", "fields", "path", "deleterow", "delete"], + props: ["keys", "fields", "path", "deleterow"], components: { "user-avatar": UserAvatar, }, @@ -76,7 +76,7 @@ export default { return typeof variable == "boolean"; }, handleDelete(id) { - this.delete(id); + this.deleterow(id); }, deleteAvatar(id) { this.$store.dispatch("users/deleteAvatar", id).then((response) => { -- cgit v1.2.3-18-g5258