From 2f84e963c8df689d3a60a42f238e760f1e6c98b0 Mon Sep 17 00:00:00 2001 From: Erastus Amunwe Date: Tue, 3 Nov 2020 11:12:10 +0200 Subject: [PATCH] Fixed get method return empty object, fixes #1 --- src/api/idb.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/idb.js b/src/api/idb.js index e8bc238..5dfe9eb 100644 --- a/src/api/idb.js +++ b/src/api/idb.js @@ -120,7 +120,7 @@ export default { store.openCursor().onsuccess = e => { let cursor = e.target.result; if (cursor) { - if(keyPath == cursor.value.keyPath) + if(keyPath == cursor.value['abbreviation']) tr = cursor.value cursor.continue(); } @@ -131,7 +131,6 @@ export default { trans.onabort = e => { reject(e) } - trans.commit(); }); },