Skip to content

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

web: remove check that compares note title with session title

Abdullah Atta865c9f3e32c9
diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.ts
index 39f8d02f5..61614add0 100644
--- a/apps/web/src/stores/editor-store.ts
+++ b/apps/web/src/stores/editor-store.ts
@@ -1016,11 +1016,7 @@ class EditorStore extends BaseStore<EditorStore> {
if (partial.note?.title !== undefined) {
const { sessions } = this.get();
for (const session of sessions) {
- if (
- "note" in session &&
- session.note.id === note.id &&
- session.note.title !== note.title
- ) {
+ if ("note" in session && session.note.id === note.id) {
this.updateSession(session.id, undefined, {
note,
title: note.title