From 625c0ed7dc867a3553152f801b12f9605335471f Mon Sep 17 00:00:00 2001 From: contributor Date: Sun, 23 Nov 2025 01:36:44 +0200 Subject: [PATCH] do not activate collections tab for empty search result --- apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx index 29cbb8212..a5343fd3b 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx +++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx @@ -86,7 +86,7 @@ export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext } await refreshResults(); - if (noteContext?.viewScope?.viewMode === "default") { + if (noteContext?.viewScope?.viewMode === "default" && note.children.length > 0) { parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {}); } }