Skip to content

Build your personal knowledge base with Trilium Notes

ui/grid view: fix some issues

Adorian Doran39e0d5b629b2
diff --git a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
index 6ede859681..3fd7d2215a 100644
--- a/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
+++ b/apps/client/src/widgets/collections/legacy/ListOrGridView.tsx
@@ -74,7 +74,7 @@ export function GridView({ note, noteIds: unfilteredNoteIds, highlightedTokens }
<div className={clsx("note-list-container use-tn-links", {"search-results": (noteType === "search")})}>
{pageNotes?.map(childNote => (
- <GridNoteCard key={note.noteId}
+ <GridNoteCard key={childNote.noteId}
note={childNote}
parentNote={note}
highlightedTokens={highlightedTokens}
@@ -153,7 +153,7 @@ interface GridNoteCardProps {
note: FNote;
parentNote: FNote;
highlightedTokens: string[] | null | undefined;
- includeArchived: boolean
+ includeArchived: boolean;
}
function GridNoteCard(props: GridNoteCardProps) {
@@ -265,8 +265,8 @@ function NoteChildren({ note, parentNote, highlightedTokens, currentLevel, expan
function NoteMenuButton(props: {notePath: string}) {
const openMenu = useCallback((e: TargetedMouseEvent<HTMLElement>) => {
- linkContextMenuService.openContextMenu(props.notePath, e);
- e.stopPropagation()
+ linkContextMenuService.openContextMenu(props.notePath, e);
+ e.stopPropagation()
}, [props.notePath]);
return <ActionButton className="note-book-item-menu"