small change

This commit is contained in:
Xeovalyte 2022-11-08 15:31:27 +01:00
parent c2ef9797f8
commit ab8aa13c5e

View File

@ -63,6 +63,8 @@ const getNews = async () => {
} }
const deleteItem = async (item, index) => { const deleteItem = async (item, index) => {
if (!item.id) return toast.error('Refresh eerst voordat je dit bericht kan verwijderen')
try { try {
news.value.splice(index, 1) news.value.splice(index, 1)