fix(core)!: $(...).[last,first,all]() defaulting to the first output instead of the output that connects the nodes (#9760)
This commit is contained in:
@@ -2,6 +2,18 @@
|
||||
|
||||
This list shows all the versions which include breaking changes and how to upgrade.
|
||||
|
||||
## 1.47.0
|
||||
|
||||
### What changed?
|
||||
|
||||
Calling `$(...).last()` (or `$(...).first()` or `$(...).all()` respectively) without arguments is returning the the last item (or first or all items) of the output that connects the two nodes. Before it was returning the item/items of the first output of that node.
|
||||
|
||||
### When is action necessary?
|
||||
|
||||
If you are using `$(...).last()` (or `$(...).first()` or `$(...)all()` respectively) without arguments for nodes that have multiple outputs (e.g. `If`, `Switch`, `Compare Datasets`, etc.) and you want it to default to the first output. In that case change it to `$(...).last(0)` (or `first` or `all` respectively).
|
||||
|
||||
This does not affect the Array functions `[].last()`, `[].first()`.
|
||||
|
||||
## 1.40.0
|
||||
|
||||
### What changed?
|
||||
|
||||
Reference in New Issue
Block a user