mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 14:34:24 +01:00
do not activate collections tab for empty search result
This commit is contained in:
parent
1ac241ad1b
commit
625c0ed7dc
@ -86,7 +86,7 @@ export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext }
|
|||||||
|
|
||||||
await refreshResults();
|
await refreshResults();
|
||||||
|
|
||||||
if (noteContext?.viewScope?.viewMode === "default") {
|
if (noteContext?.viewScope?.viewMode === "default" && note.children.length > 0) {
|
||||||
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
|
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user