mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 20:49:36 +01:00
fix: getNotes() sets this.notes to null
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user