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
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,10 @@ export default function Card({
editorRef.current?.focus(); editorRef.current?.focus();
}, [ isEditing ]); }, [ isEditing ]);
useEffect(() => {
setTitle(note.title);
}, [ note ]);
return ( return (
<div <div
className={`board-note ${colorClass} ${isDragging ? 'dragging' : ''} ${isEditing ? "editing" : ""}`} className={`board-note ${colorClass} ${isDragging ? 'dragging' : ''} ${isEditing ? "editing" : ""}`}

View File

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