fix(react): applyChanges broken for multi changes for one node

This commit is contained in:
moklick
2024-01-08 15:28:04 +01:00
parent c8a5c25b14
commit 2870c2f367
2 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
# @xyflow/react
## 12.0.0-next.5
### Minor changes
- fix applyChanges: handle multi changes for one node
## 12.0.0-next.4
### Minor changes

View File

@@ -141,8 +141,9 @@ function applyChanges(changes: any[], elements: any[]): any[] {
}
}
}
updatedElements.push(updateItem);
}
updatedElements.push(updateItem);
}
return updatedElements;