Skip to content

Build your personal knowledge base with Trilium Notes

use 100 children limit on only search notes (as was initially intended), fixes #1673

zadam0f065536d08a
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js
index 863436308d..8ee88ebb3f 100644
--- a/src/public/app/widgets/note_tree.js
+++ b/src/public/app/widgets/note_tree.js
@@ -476,7 +476,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
let childNoteIds = note.getChildNoteIds();
- if (childNoteIds.length > MAX_SEARCH_RESULTS_IN_TREE) {
+ if (note.type === 'search' && childNoteIds.length > MAX_SEARCH_RESULTS_IN_TREE) {
childNoteIds = childNoteIds.slice(0, MAX_SEARCH_RESULTS_IN_TREE);
}