mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 20:28:07 +08:00
fix node focus after hoisting
This commit is contained in:
parent
29828f8e8f
commit
eee75bd2e8
@ -25,6 +25,12 @@ async function setHoistedNoteId(noteId) {
|
|||||||
await server.put('options/hoistedNoteId/' + noteId);
|
await server.put('options/hoistedNoteId/' + noteId);
|
||||||
|
|
||||||
await tree.reload();
|
await tree.reload();
|
||||||
|
|
||||||
|
const activeTabContext = noteDetailService.getActiveTabContext();
|
||||||
|
|
||||||
|
if (activeTabContext) {
|
||||||
|
await tree.activateNote(activeTabContext.notePath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function unhoist() {
|
async function unhoist() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user