mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
chore(collections/board): reordering notes not refreshing properly
This commit is contained in:
parent
08dc05c504
commit
8611328a03
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user