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: initialize & save this._settings on startup
thecodrr8ce7bb6429ab
diff --git a/packages/core/api/settings.js b/packages/core/api/settings.jsindex 70f5a16f3..37b3c01e3 100644--- a/packages/core/api/settings.js+++ b/packages/core/api/settings.js@@ -10,13 +10,14 @@ class Settings {*/constructor(db) {this._db = db;- this._initSettings();}async init() {+ this._initSettings();var settings = await this._db.context.read("settings");- if (!settings.groupOptions) settings.groupOptions = {};if (settings) this._settings = settings;+ else await this._saveSettings();+EV.subscribe(EVENTS.userLoggedOut, () => {this._settings = undefined;this._initSettings();