mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(collections/board): reordering notes not refreshing properly
This commit is contained in:
@@ -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" : ""}`}
|
||||
|
||||
@@ -103,6 +103,7 @@ export default function Column({
|
||||
<div className="board-drop-placeholder show" />
|
||||
)}
|
||||
<Card
|
||||
key={note.noteId}
|
||||
api={api}
|
||||
note={note}
|
||||
branch={branch}
|
||||
|
||||
Reference in New Issue
Block a user