Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion static/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down