do not activate collections tab for empty search result

This commit is contained in:
contributor 2025-11-23 01:36:44 +02:00
parent 1ac241ad1b
commit 625c0ed7dc

View File

@ -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", {});
}
}