fix(react): applyChanges broken for multi changes for one node
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -141,8 +141,9 @@ function applyChanges(changes: any[], elements: any[]): any[] {
|
||||
}
|
||||
}
|
||||
}
|
||||
updatedElements.push(updateItem);
|
||||
}
|
||||
|
||||
updatedElements.push(updateItem);
|
||||
}
|
||||
|
||||
return updatedElements;
|
||||
|
||||
Reference in New Issue
Block a user