Skip to content

Commit

Permalink
seens good
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Jeandet committed Aug 17, 2017
1 parent 5cfc90a commit 7f5efd5
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -197,11 +197,7 @@
if (indexOfParentWorkflow != -1) {
// Remove the parent workflow and its children from the list
expandedParentWorkflows = expandedParentWorkflows.filter(function (el, i, array) {
// we keep the element if
// it is not the parent we want to remove
i != indexOfParentWorkflow
// or if it doesn't start with the parent (if it does it's a subworkflow of this parent)
|| !el.startsWith(parentWorkflow)
return !el.startsWith(parentWorkflow)
})
} else if (parentWorkflow && parentWorkflowNames.indexOf(parentWorkflow) != -1) {
// Add it if it's not
Expand Down

0 comments on commit 7f5efd5

Please sign in to comment.