A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: handle all thrown exceptions on monographs init
thecodrrda950b1bf115
diff --git a/packages/core/api/monograph.js b/packages/core/api/monograph.jsindex a1748e421..8cbc5ec5e 100644--- a/packages/core/api/monograph.js+++ b/packages/core/api/monograph.js@@ -15,12 +15,15 @@ class Monograph {const user = await this._db.user.getUser();const token = await this._db.user.tokenManager.getAccessToken();if (!user || !token || !user.isEmailConfirmed) return;-- const userMonographs = await http.get(`${Constants.API_HOST}/monographs`);- this.monographs = userMonographs.reduce((prev, curr) => {- prev[curr.noteId] = curr.id;- return prev;- }, {});+ try {+ const userMonographs = await http.get(`${Constants.API_HOST}/monographs`);+ this.monographs = userMonographs.reduce((prev, curr) => {+ prev[curr.noteId] = curr.id;+ return prev;+ }, {});+ } catch (e) {+ console.error(e);+ }}/**