mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 05:09:54 +01:00
fix(client/search): table freezing due to nesting
This commit is contained in:
@@ -20,6 +20,10 @@ export async function buildRowDefinitions(parentNote: FNote, infos: AttributeDef
|
|||||||
let hasSubtree = false;
|
let hasSubtree = false;
|
||||||
let rowNumber = childBranches.length;
|
let rowNumber = childBranches.length;
|
||||||
|
|
||||||
|
if (parentNote.type === "search") {
|
||||||
|
maxDepth = 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (const branch of childBranches) {
|
for (const branch of childBranches) {
|
||||||
const note = await branch.getNote();
|
const note = await branch.getNote();
|
||||||
if (!note || (!includeArchived && note.isArchived)) {
|
if (!note || (!includeArchived && note.isArchived)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user