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

This commit is contained in:
zadam 2021-02-23 22:01:02 +01:00
parent 93d55b3e7b
commit 0f065536d0

View File

@ -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);
}