mirror of
https://github.com/zadam/trilium.git
synced 2026-01-01 12:14:24 +01:00
fix(pdf_pages): fix a few type errors
This commit is contained in:
parent
79f03ad3ac
commit
3c1beab725
@ -16,7 +16,7 @@ export default function PdfPages() {
|
||||
|
||||
return (
|
||||
<RightPanelWidget id="pdf-pages" title="Pages" grow>
|
||||
<PdfPagesList key={note.noteId} />
|
||||
<PdfPagesList key={note?.noteId} />
|
||||
</RightPanelWidget>
|
||||
);
|
||||
}
|
||||
@ -80,6 +80,8 @@ function PdfPageItem({
|
||||
pageNumber: number;
|
||||
isActive: boolean;
|
||||
thumbnail?: string;
|
||||
onRequestThumbnail(page: number): void;
|
||||
onPageClick(): void;
|
||||
}) {
|
||||
const hasRequested = useRef(false);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user