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
feat: do not initialize a collection if its already initialized
thecodrr66224b3975b6
diff --git a/packages/core/collections/collection.js b/packages/core/collections/collection.jsindex f044023ff..875201f7d 100644--- a/packages/core/collections/collection.js+++ b/packages/core/collections/collection.js@@ -19,7 +19,9 @@ class Collection {}async init() {+ if (this.initialized) return;await this._collection.init();+ this.initialized = true;}/**