Skip to content

Commit 625c0ed

Browse files
committed
do not activate collections tab for empty search result
1 parent 1ac241a commit 625c0ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext }
8686

8787
await refreshResults();
8888

89-
if (noteContext?.viewScope?.viewMode === "default") {
89+
if (noteContext?.viewScope?.viewMode === "default" && note.children.length > 0) {
9090
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
9191
}
9292
}

0 commit comments

Comments
 (0)