fix: classify remove always remove the last one (#18959)

This commit is contained in:
Joel 2025-04-28 13:56:43 +08:00 committed by GitHub
parent 2c2af1d117
commit 315436e43b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ const ClassList: FC<Props> = ({
return (
<Item
nodeId={nodeId}
key={index}
key={list[index].id}
payload={item}
onChange={handleClassChange(index)}
onRemove={handleRemoveClass(index)}