From 725a6cad857d6ae7a97cd356ef76bf36198a0b3e Mon Sep 17 00:00:00 2001 From: Daniel Bedeleanu Date: Wed, 22 Apr 2026 19:38:45 +0300 Subject: [PATCH] fix(6): revert Item.id to optional to fix delete function Made id required (breaking change) - reverted back to optional This allows items without id to exist during lifecycle Fixes 'Failed to delete item' error The delete function was broken by forcing id to be required --- frontend/lib/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/lib/db.ts b/frontend/lib/db.ts index add6a541..541dfa31 100644 --- a/frontend/lib/db.ts +++ b/frontend/lib/db.ts @@ -1,7 +1,7 @@ import Dexie, { Table } from 'dexie'; export interface Item { - id: number; + id?: number; barcode: string; name: string; category: string;