Skip to content

Build your personal knowledge base with Trilium Notes

chore(collections/board): reordering notes not refreshing properly

Elian Doran8611328a03c5
diff --git a/apps/client/src/widgets/collections/board/card.tsx b/apps/client/src/widgets/collections/board/card.tsx
index 6d684ad3c0..ca880f77a2 100644
--- a/apps/client/src/widgets/collections/board/card.tsx
+++ b/apps/client/src/widgets/collections/board/card.tsx
@@ -52,6 +52,10 @@ export default function Card({
editorRef.current?.focus();
}, [ isEditing ]);
+ useEffect(() => {
+ setTitle(note.title);
+ }, [ note ]);
+
return (
<div
className={`board-note ${colorClass} ${isDragging ? 'dragging' : ''} ${isEditing ? "editing" : ""}`}
diff --git a/apps/client/src/widgets/collections/board/column.tsx b/apps/client/src/widgets/collections/board/column.tsx
index 9567862aa5..93b14d94ff 100644
--- a/apps/client/src/widgets/collections/board/column.tsx
+++ b/apps/client/src/widgets/collections/board/column.tsx
@@ -103,6 +103,7 @@ export default function Column({
<div className="board-drop-placeholder show" />
)}
<Card
+ key={note.noteId}
api={api}
note={note}
branch={branch}