Skip to content

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

fix: Cannot read property 'error' of undefined

thecodrr765befa580f1
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index a987dc448..1b435d258 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -101,7 +101,7 @@ class Database {
}
async connectSSE(args) {
- if (!!args.error) return;
+ if (args && !!args.error) return;
this.monographs.init();