fix: getNotes() sets this.notes to null

This commit is contained in:
thewisefarmerr
2019-11-29 06:41:03 +05:00
parent 72597dc3d6
commit 3d1c80bc96

View File

@@ -16,6 +16,7 @@ class Database {
async getNotes() {
//update our cache
this.notes = await this.storage.read(KEYS.notes);
if (!this.notes) this.notes = {};
return Object.values(this.notes);
}