From 0c9d1e91bb5d6240f49f972f5932d255ea20c55f Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Sep 2025 18:46:08 +0300 Subject: [PATCH] fix(client): opening a new tab doesn't preserve view scope --- apps/client/src/components/tab_manager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/components/tab_manager.ts b/apps/client/src/components/tab_manager.ts index 0416071c6..71a7d77bd 100644 --- a/apps/client/src/components/tab_manager.ts +++ b/apps/client/src/components/tab_manager.ts @@ -600,18 +600,18 @@ export default class TabManager extends Component { } async moveTabToNewWindowCommand({ ntxId }: { ntxId: string }) { - const { notePath, hoistedNoteId } = this.getNoteContextById(ntxId); + const { notePath, hoistedNoteId, viewScope } = this.getNoteContextById(ntxId); const removed = await this.removeNoteContext(ntxId); if (removed) { - this.triggerCommand("openInWindow", { notePath, hoistedNoteId }); + this.triggerCommand("openInWindow", { notePath, hoistedNoteId, viewScope }); } } async copyTabToNewWindowCommand({ ntxId }: { ntxId: string }) { - const { notePath, hoistedNoteId } = this.getNoteContextById(ntxId); - this.triggerCommand("openInWindow", { notePath, hoistedNoteId }); + const { notePath, hoistedNoteId, viewScope } = this.getNoteContextById(ntxId); + this.triggerCommand("openInWindow", { notePath, hoistedNoteId, viewScope }); } async reopenLastTabCommand() {