mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 14:09:34 +01:00
fix: getNotes() sets this.notes to null
This commit is contained in:
@@ -16,6 +16,7 @@ class Database {
|
|||||||
async getNotes() {
|
async getNotes() {
|
||||||
//update our cache
|
//update our cache
|
||||||
this.notes = await this.storage.read(KEYS.notes);
|
this.notes = await this.storage.read(KEYS.notes);
|
||||||
|
if (!this.notes) this.notes = {};
|
||||||
return Object.values(this.notes);
|
return Object.values(this.notes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user