fix(task): key mancante sul ramo a task singolo
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,13 @@ export function SortableTaskList({
|
||||
|
||||
// One task can't be reordered — skip the DnD machinery entirely.
|
||||
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 (
|
||||
|
||||
Reference in New Issue
Block a user