4
2
mirror of https://github.com/getbible/app.git synced 2024-12-22 07:48:55 +00:00

Fixed get method return empty object, fixes #1

This commit is contained in:
Erastus Amunwe 2020-11-03 11:12:10 +02:00
parent d1ffc57dc3
commit 2f84e963c8

View File

@ -120,7 +120,7 @@ export default {
store.openCursor().onsuccess = e => { store.openCursor().onsuccess = e => {
let cursor = e.target.result; let cursor = e.target.result;
if (cursor) { if (cursor) {
if(keyPath == cursor.value.keyPath) if(keyPath == cursor.value['abbreviation'])
tr = cursor.value tr = cursor.value
cursor.continue(); cursor.continue();
} }
@ -131,7 +131,6 @@ export default {
trans.onabort = e => { trans.onabort = e => {
reject(e) reject(e)
} }
trans.commit();
}); });
}, },