Skip to content

Build your personal knowledge base with Trilium Notes

fix(client/search): table freezing due to nesting

Elian Doran8939fac44769
diff --git a/apps/client/src/widgets/collections/table/rows.ts b/apps/client/src/widgets/collections/table/rows.ts
index 84b4c5882d..e1b0a765e8 100644
--- a/apps/client/src/widgets/collections/table/rows.ts
+++ b/apps/client/src/widgets/collections/table/rows.ts
@@ -20,6 +20,10 @@ export async function buildRowDefinitions(parentNote: FNote, infos: AttributeDef
let hasSubtree = false;
let rowNumber = childBranches.length;
+ if (parentNote.type === "search") {
+ maxDepth = 0;
+ }
+
for (const branch of childBranches) {
const note = await branch.getNote();
if (!note || (!includeArchived && note.isArchived)) {