diff --git a/static/js/storage.js b/static/js/storage.js index 3b46eb0..8138435 100644 --- a/static/js/storage.js +++ b/static/js/storage.js @@ -467,7 +467,8 @@ const res = await authenticatedFetch(`/api/sheets/pomodoros/${record_id}`, { method: 'DELETE' }); - if (!res.ok) throw new Error(`HTTP ${res.status}`); + // 404 on delete is OK - record already doesn't exist + if (!res.ok && res.status !== 404) throw new Error(`HTTP ${res.status}`); } } else if (store === 'settings') { const res = await authenticatedFetch('/api/sheets/settings', {