From 9fd26a9b9fc7cb28c931cf27f73723b2e8105ca3 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 12 Mar 2021 21:47:26 +0100 Subject: [PATCH] when creating new note into inbox use current hoisted note in new tab as well --- src/public/app/services/entrypoints.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/public/app/services/entrypoints.js b/src/public/app/services/entrypoints.js index c382fce0c..f8d56658b 100644 --- a/src/public/app/services/entrypoints.js +++ b/src/public/app/services/entrypoints.js @@ -74,7 +74,11 @@ export default class Entrypoints extends Component { await ws.waitForMaxKnownEntityChangeId(); - await appContext.tabManager.openTabWithNote(note.noteId, true); + const hoistedNoteId = appContext.tabManager.getActiveTabContext() + ? appContext.tabManager.getActiveTabContext().hoistedNoteId + : 'root'; + + await appContext.tabManager.openTabWithNote(note.noteId, true, null, hoistedNoteId); appContext.triggerEvent('focusAndSelectTitle'); }