Skip to content

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

chore: Support for the experimental syntax 'logicalAssignment' isn't currently enabled

thecodrr34140a0cc013
diff --git a/packages/core/__tests__/backup.test.js b/packages/core/__tests__/backup.test.js
index 8caaf8718..e4859cb43 100644
--- a/packages/core/__tests__/backup.test.js
+++ b/packages/core/__tests__/backup.test.js
@@ -120,7 +120,6 @@ describe.each([
const tableContent = allContent.find((a) => a.data.includes("<table"));
if (tableContent) {
- console.log(tableContent.data);
expect(
tableContent.data.startsWith(
`<div class="table-container" contenteditable="false">`
diff --git a/packages/core/api/user-manager.js b/packages/core/api/user-manager.js
index cd5b682bc..b9388e4a0 100644
--- a/packages/core/api/user-manager.js
+++ b/packages/core/api/user-manager.js
@@ -258,7 +258,7 @@ class UserManager {
if (!new_password) throw new Error("New password is required.");
const attachmentsKey = await this.getAttachmentsKey();
- data.encryptionKey ||= await this.getEncryptionKey();
+ data.encryptionKey = data.encryptionKey || await this.getEncryptionKey();
await this._db.outbox.add(type, data, async () => {
await this._db.sync(true, true);