small change
This commit is contained in:
parent
c2ef9797f8
commit
ab8aa13c5e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user