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

This commit is contained in:
Elian Doran
2025-09-12 14:21:10 +03:00
parent 08dc05c504
commit 8611328a03
2 changed files with 5 additions and 0 deletions

View File

@@ -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" : ""}`}

View File

@@ -103,6 +103,7 @@ export default function Column({
<div className="board-drop-placeholder show" />
)}
<Card
key={note.noteId}
api={api}
note={note}
branch={branch}