4
2
mirror of https://github.com/getbible/app.git synced 2024-12-21 23:48:53 +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 => {
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();
});
},