[bug] coerce potention undefined to null as return value of getObject()
This commit is contained in:
parent
02d28d46bb
commit
0d934e7b6e
@ -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>> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user