mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 18:25:28 -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();
|
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" : ""}`}
|
||||||
|
|||||||
@ -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}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user