From ae1a4b7a80fbb80b399fe25d071e0b9739074cd9 Mon Sep 17 00:00:00 2001 From: Jin <22962980+JYC333@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:51:22 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20tab=20empty=20path?= =?UTF-8?q?=20behavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/app/components/tab_manager.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/public/app/components/tab_manager.ts b/src/public/app/components/tab_manager.ts index 4cac7a5e3..a4d00a075 100644 --- a/src/public/app/components/tab_manager.ts +++ b/src/public/app/components/tab_manager.ts @@ -98,8 +98,7 @@ export default class TabManager extends Component { ntxId: parsedFromUrl.ntxId, active: true, hoistedNoteId: parsedFromUrl.hoistedNoteId || "root", - viewScope: parsedFromUrl.viewScope || {}, - mainNtxId: null + viewScope: parsedFromUrl.viewScope || {} }); } else if (!filteredNoteContexts.find((tab: NoteContextState) => tab.active)) { filteredNoteContexts[0].active = true; @@ -279,10 +278,7 @@ export default class TabManager extends Component { } async openInNewTab(targetNoteId: string, hoistedNoteId: string | null = null) { - const noteContext = await this.openEmptyTab( - null, - hoistedNoteId || this.getActiveContext()?.hoistedNoteId - ); + const noteContext = await this.openEmptyTab(null, hoistedNoteId || this.getActiveContext()?.hoistedNoteId); await noteContext.setNote(targetNoteId); }