mirror of
https://github.com/zadam/trilium.git
synced 2025-12-15 12:49:53 +01:00
fix(note_details): appearing in options
This commit is contained in:
@@ -3,11 +3,12 @@ import { useNoteContext, useNoteProperty } from "./react/hooks";
|
|||||||
|
|
||||||
export default function NoteTitleDetails() {
|
export default function NoteTitleDetails() {
|
||||||
const { note } = useNoteContext();
|
const { note } = useNoteContext();
|
||||||
|
const isHiddenNote = note && note.noteId !== "_search" && note.noteId.startsWith("_");
|
||||||
const noteType = useNoteProperty(note, "type");
|
const noteType = useNoteProperty(note, "type");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="title-details">
|
<div className="title-details">
|
||||||
{note && noteType === "book" && <CollectionProperties note={note} />}
|
{note && !isHiddenNote && noteType === "book" && <CollectionProperties note={note} />}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user