From ab8aa13c5eb4a819e0e77f8231abff0c10e723b7 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 8 Nov 2022 15:31:27 +0100 Subject: [PATCH] small change --- frontend/pages/news/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/pages/news/index.vue b/frontend/pages/news/index.vue index bfe88f0..82ad253 100644 --- a/frontend/pages/news/index.vue +++ b/frontend/pages/news/index.vue @@ -63,6 +63,8 @@ const getNews = async () => { } const deleteItem = async (item, index) => { + if (!item.id) return toast.error('Refresh eerst voordat je dit bericht kan verwijderen') + try { news.value.splice(index, 1)