fix: update key prop in UserActionItem to use index for consistent rendering

This commit is contained in:
twwu 2026-01-22 17:15:58 +08:00
parent 9aa674a04f
commit bcd6e22735

View File

@ -185,7 +185,7 @@ const Panel: FC<NodePanelProps<HumanInputNodeType>> = ({
<div className="space-y-2">
{inputs.user_actions.map((action, index) => (
<UserActionItem
key={action.id}
key={index}
data={action}
onChange={data => handleUserActionChange(index, data)}
onDelete={handleUserActionDelete}