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/models.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pages/admin/models.vue') diff --git a/pages/admin/models.vue b/pages/admin/models.vue index ca84932..148e206 100644 --- a/pages/admin/models.vue +++ b/pages/admin/models.vue @@ -42,8 +42,7 @@ :keys="['id', 'name', 'created', 'author', 'likes']" :fields="models" path="/models/" - :deleterow="true" - :delete="openModal" + :deleterow="openModal" ) pagination(:page="page" :pages="pages" v-if="count" path="/admin/models") -- cgit v1.2.3-18-g5258