diff --git a/src/utilities/save-utility.ts b/src/utilities/save-utility.ts index 8f3eb4d..340c7d2 100644 --- a/src/utilities/save-utility.ts +++ b/src/utilities/save-utility.ts @@ -27,7 +27,7 @@ export async function putSaveIntoIndexDB(info: Partial & { id?: nu image: image, ...info, } - if (!item.id) { + if (item.id === undefined) { let lastSave = await getLastRowFromIndexDB(INDEXED_DB_SAVE_TABLE) if (lastSave) { item.id = lastSave.id + 1