ahmedshaaban1999 commented on pull request #5862:
URL: https://github.com/apache/nifi/pull/5862#issuecomment-1076264846
@mcgilman I have a question. In the deletion of a multi-selection, why after
the snippet is removed we loop the components of the snippet and remove them
one by one ?
```
// remove all the non connections in the snippet first
components.each(function (ids, type) {
if (type !== 'Connection') {
nfCanvasUtils.getComponentByType(type).remove(ids);
}
});
// then remove all the connections
if (components.has('Connection')) {
nfConnection.remove(components.get('Connection'));
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]