fix(note_details): appearing in options

This commit is contained in:
Elian Doran
2025-12-12 20:21:55 +02:00
parent 28e9abc8bb
commit 2b195155ed

View File

@@ -3,11 +3,12 @@ import { useNoteContext, useNoteProperty } from "./react/hooks";
export default function NoteTitleDetails() {
const { note } = useNoteContext();
const isHiddenNote = note && note.noteId !== "_search" && note.noteId.startsWith("_");
const noteType = useNoteProperty(note, "type");
return (
<div className="title-details">
{note && noteType === "book" && <CollectionProperties note={note} />}
{note && !isHiddenNote && noteType === "book" && <CollectionProperties note={note} />}
</div>
);
}