Skip to content

Build your personal knowledge base with Trilium Notes

feat(layout/search_properties): expand search properties

Elian Doran7a1ff42d67fe
diff --git a/apps/client/src/widgets/layout/NoteTitleActions.tsx b/apps/client/src/widgets/layout/NoteTitleActions.tsx
index 6325e9a31c..56bbb4b2b2 100644
--- a/apps/client/src/widgets/layout/NoteTitleActions.tsx
+++ b/apps/client/src/widgets/layout/NoteTitleActions.tsx
@@ -21,9 +21,10 @@ export default function NoteTitleActions() {
}
function SearchProperties({ note, ntxId }: { note: FNote, ntxId: string | null | undefined }) {
- return (
+ return (note &&
<Collapsible
title={t("search_definition.search_parameters")}
+ initiallyExpanded={note.isInHiddenSubtree()} // not saved searches
>
<SearchDefinitionTab note={note} ntxId={ntxId} hidden={false} />
</Collapsible>