Skip to content

Commit

Permalink
Update updateRecord.js
Browse files Browse the repository at this point in the history
  • Loading branch information
darx committed Jul 29, 2022
1 parent e7fc8e9 commit 42280c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/storage/fixtures/updateRecord.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
request = objectStore.get(${storeNameKey});

request.onsuccess = () => {
objectStore.put(${storeNameKeyValue}, ${storeNameKey})
try {
objectStore.put(${storeNameKeyValue}, ${storeNameKey});
} catch (e) {
if (e && e.message.indexOf("in-line keys") !== -1) {
objectStore.put(${storeNameKeyValue});
}
}
};
};
})();

0 comments on commit 42280c7

Please sign in to comment.