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() {