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
web: open note history in new tab if active tab is pinned
Abdullah Atta2eaf07118a2d
diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.tsindex 4f6c29fed..f2e253ef4 100644--- a/apps/web/src/stores/editor-store.ts+++ b/apps/web/src/stores/editor-store.ts@@ -595,9 +595,18 @@ class EditorStore extends BaseStore<EditorStore> {if (!oldContent || !currentContent) return;- const { getSession, addSession, sessions, activeTabId, tabs } = this.get();+ const {+ getSession,+ addSession,+ sessions,+ activeTabId,+ getActiveTab,+ tabs+ } = this.get();- const tabId = activeTabId ?? this.addTab();+ const tabId = getActiveTab()?.pinned+ ? this.addTab(getId())+ : activeTabId || this.addTab(getId());const tab = tabs.find((t) => t.id === tabId);const activeSession = tab && getSession(tab.sessionId);const oldSession = sessions.find(