[bug] coerce potention undefined to null as return value of getObject()

This commit is contained in:
Sosthene 2025-09-10 11:08:21 +02:00
parent 02d28d46bb
commit 0d934e7b6e

View File

@ -364,7 +364,7 @@ export class Database {
getRequest.onsuccess = () => resolve(getRequest.result);
getRequest.onerror = () => reject(getRequest.error);
});
return result;
return result ?? null; // Convert undefined to null
}
public async dumpStore(storeName: string): Promise<Record<string, any>> {