diff --git a/src/public/javascripts/services/hoisted_note.js b/src/public/javascripts/services/hoisted_note.js index ff7458911..80b0fc12e 100644 --- a/src/public/javascripts/services/hoisted_note.js +++ b/src/public/javascripts/services/hoisted_note.js @@ -25,6 +25,12 @@ async function setHoistedNoteId(noteId) { await server.put('options/hoistedNoteId/' + noteId); await tree.reload(); + + const activeTabContext = noteDetailService.getActiveTabContext(); + + if (activeTabContext) { + await tree.activateNote(activeTabContext.notePath); + } } async function unhoist() {