diff --git a/src/lib/upload.ts b/src/lib/upload.ts index b97b8ed..9f2aac9 100644 --- a/src/lib/upload.ts +++ b/src/lib/upload.ts @@ -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'); - } } \ No newline at end of file