fix(task): key mancante sul ramo a task singolo

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-20 22:44:34 +02:00
parent c9855d58ce
commit 4666fc4058
+7 -1
View File
@@ -106,7 +106,13 @@ export function SortableTaskList({
// One task can't be reordered — skip the DnD machinery entirely. // One task can't be reordered — skip the DnD machinery entirely.
if (items.length < 2) { if (items.length < 2) {
return <div className="space-y-2">{items.map((i) => i.node)}</div>; return (
<div className="space-y-2">
{items.map((i) => (
<div key={i.id}>{i.node}</div>
))}
</div>
);
} }
return ( return (