Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not crash app if default notes are not loaded

thecodrr700e7540fab8
diff --git a/apps/web/src/common/db.js b/apps/web/src/common/db.js
index 419e4312a..b39973a06 100644
--- a/apps/web/src/common/db.js
+++ b/apps/web/src/common/db.js
@@ -25,8 +25,10 @@ function initializeDatabase() {
await db.init();
if (!isAppHydrated()) {
- setAppHydrated();
- loadDefaultNotes(db);
+ try {
+ await loadDefaultNotes(db);
+ setAppHydrated();
+ } catch (e) {}
}
});
}