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
This commit is contained in:
2026-04-22 19:38:45 +03:00
parent 0881b0ecee
commit 725a6cad85

View File

@@ -1,7 +1,7 @@
import Dexie, { Table } from 'dexie';
export interface Item {
id: number;
id?: number;
barcode: string;
name: string;
category: string;