From f466266a5f93e6ee637de9a9cd8cfb3efb82e71a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 31 Aug 2021 08:16:37 +0200 Subject: [PATCH] bring back extra caution --- src/matrix/storage/idb/error.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/storage/idb/error.ts b/src/matrix/storage/idb/error.ts index 0d723837..388ad4c0 100644 --- a/src/matrix/storage/idb/error.ts +++ b/src/matrix/storage/idb/error.ts @@ -25,8 +25,8 @@ function _sourceName(source: IDBIndex | IDBObjectStore): string { function _sourceDatabase(source: IDBIndex | IDBObjectStore): string { return "objectStore" in source ? - source.objectStore.transaction.db.name : - source.transaction.db.name; + source.objectStore?.transaction?.db?.name : + source.transaction?.db?.name; } export class IDBError extends StorageError {