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 --- pages/admin/reports.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pages/admin/reports.vue') diff --git a/pages/admin/reports.vue b/pages/admin/reports.vue index 5866335..65825bb 100644 --- a/pages/admin/reports.vue +++ b/pages/admin/reports.vue @@ -50,8 +50,7 @@ v-table( :keys="['id', 'model_id', 'created', 'updated', 'user', 'resolved', 'note', 'admin_note']" :fields="warnings" - :deleterow="true" - :delete="openModal" + :deleterow="openModal" ) pagination(:page="page" :pages="pages" v-if="count" path="/admin/reports") -- cgit v1.2.3-18-g5258