4
2
Fork 0

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
1 changed files with 1 additions and 2 deletions

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();
});
},