mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 12:08:03 +08:00
fix disappearing expander in some cases, closes #562
This commit is contained in:
parent
f3ed7e936d
commit
d3ac7b0939
1 changed files with 3 additions and 11 deletions
|
@ -746,19 +746,11 @@ async function createNoteInto() {
|
|||
}
|
||||
|
||||
async function checkFolderStatus(node) {
|
||||
const children = node.getChildren();
|
||||
const note = await treeCache.getNote(node.data.noteId);
|
||||
|
||||
if (!children || children.length === 0) {
|
||||
node.folder = false;
|
||||
node.folder = note.type === 'search' || note.getChildNoteIds().length > 0;
|
||||
node.icon = await treeBuilder.getIcon(note);
|
||||
node.renderTitle();
|
||||
}
|
||||
else if (children && children.length > 0) {
|
||||
node.folder = true;
|
||||
node.icon = await treeBuilder.getIcon(note);
|
||||
node.renderTitle();
|
||||
}
|
||||
}
|
||||
|
||||
async function reloadNote(noteId) {
|
||||
|
|
Loading…
Reference in a new issue