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)