diff --git a/apps/client/src/widgets/layout/NoteTitleActions.tsx b/apps/client/src/widgets/layout/NoteTitleActions.tsx index eabfada7e..52f70a991 100644 --- a/apps/client/src/widgets/layout/NoteTitleActions.tsx +++ b/apps/client/src/widgets/layout/NoteTitleActions.tsx @@ -21,21 +21,17 @@ export default function NoteTitleActions() { const isHiddenNote = note && note.noteId !== "_search" && note.noteId.startsWith("_"); const noteType = useNoteProperty(note, "type"); - const items = [ - note && , - note && noteType === "search" && , - note && !isHiddenNote && noteType === "book" && - ].filter(Boolean); - return ( -
0 && "visible")}> - {items} +
+ + {noteType === "search" && } + {!isHiddenNote && note && noteType === "book" && }
); } -function SearchProperties({ note, ntxId }: { note: FNote, ntxId: string | null | undefined }) { +function SearchProperties({ note, ntxId }: { note: FNote | null | undefined, ntxId: string | null | undefined }) { return (note &&