remove alert from delete function

This commit is contained in:
2026-02-17 16:33:37 +13:00
parent f30262be3b
commit 817c857fde

View File

@@ -57,17 +57,11 @@ export async function updateEntry(entry) {
}
export async function deleteEntry(entry) {
const res = await fetch(`/api/entry/delete`, {
await fetch(`/api/entry/delete`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ id: entry.id })
});
if (res.ok) {
entry = null;
} else {
alert('Failed to delete entry');
}
}