mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
non-search notes should have no children limit, #1673
This commit is contained in:
parent
9f002fa802
commit
4606e8d118
@ -595,7 +595,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
let childBranches = parentNote.getFilteredChildBranches();
|
||||
|
||||
if (childBranches.length > MAX_SEARCH_RESULTS_IN_TREE) {
|
||||
if (parentNote.type === 'search' && childBranches.length > MAX_SEARCH_RESULTS_IN_TREE) {
|
||||
childBranches = childBranches.slice(0, MAX_SEARCH_RESULTS_IN_TREE);
|
||||
}
|
||||
|
||||
@ -808,8 +808,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
/** @let {FancytreeNode} */
|
||||
let parentNode = this.getNodesByNoteId('root')[0];
|
||||
|
||||
const resolvedNotePathSegments = (await treeService.resolveNotePathToSegments(notePath, this.hoistedNoteId, logErrors))
|
||||
.slice(1);
|
||||
let resolvedNotePathSegments = await treeService.resolveNotePathToSegments(notePath, this.hoistedNoteId, logErrors);
|
||||
|
||||
if (!resolvedNotePathSegments) {
|
||||
if (logErrors) {
|
||||
@ -819,6 +818,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
return;
|
||||
}
|
||||
|
||||
resolvedNotePathSegments = resolvedNotePathSegments.slice(1);
|
||||
|
||||
for (const childNoteId of resolvedNotePathSegments) {
|
||||
// we expand only after hoisted note since before then nodes are not actually present in the tree
|
||||
if (parentNode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user