mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix folder status rendering issues when opening not-yet-loaded notes
This commit is contained in:
parent
c4669cbaa3
commit
5b14358620
@ -109,6 +109,8 @@ async function getNodeFromPath(notePath, expand = false, expandOpts = {}) {
|
|||||||
|
|
||||||
// we expand only after hoisted note since before then nodes are not actually present in the tree
|
// we expand only after hoisted note since before then nodes are not actually present in the tree
|
||||||
if (parentNode) {
|
if (parentNode) {
|
||||||
|
checkFolderStatus(parentNode);
|
||||||
|
|
||||||
if (!parentNode.isLoaded()) {
|
if (!parentNode.isLoaded()) {
|
||||||
await parentNode.load();
|
await parentNode.load();
|
||||||
}
|
}
|
||||||
@ -531,7 +533,7 @@ async function collapseTree(node = null) {
|
|||||||
async function scrollToActiveNote() {
|
async function scrollToActiveNote() {
|
||||||
const activeContext = noteDetailService.getActiveTabContext();
|
const activeContext = noteDetailService.getActiveTabContext();
|
||||||
|
|
||||||
if (activeContext) {
|
if (activeContext && activeContext.notePath) {
|
||||||
const node = await expandToNote(activeContext.notePath);
|
const node = await expandToNote(activeContext.notePath);
|
||||||
|
|
||||||
node.makeVisible({scrollIntoView: true});
|
node.makeVisible({scrollIntoView: true});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user