mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
fix(client/print): text notes affecting slides
This commit is contained in:
@@ -33,6 +33,10 @@ function App({ note, noteId }: { note: FNote | null | undefined, noteId: string
|
||||
|
||||
if (!note || !props) return <Error404 noteId={noteId} />
|
||||
|
||||
useLayoutEffect(() => {
|
||||
document.body.dataset.noteType = note.type;
|
||||
}, [ note ]);
|
||||
|
||||
return (
|
||||
<>
|
||||
{note.type === "book"
|
||||
|
||||
Reference in New Issue
Block a user