From 8939fac447697555c034cfe8a031fd17c644f530 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 20 Oct 2025 17:14:47 +0300 Subject: [PATCH] fix(client/search): table freezing due to nesting --- apps/client/src/widgets/collections/table/rows.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/client/src/widgets/collections/table/rows.ts b/apps/client/src/widgets/collections/table/rows.ts index 84b4c5882..e1b0a765e 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)) {