Skip to content

Commit

Permalink
fix(nx): dep-graph vizualiation should only highlight an edge when bo…
Browse files Browse the repository at this point in the history
…th nodes are affected
  • Loading branch information
vsavkin committed Oct 7, 2019
1 parent 1d377ea commit 1aa255c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/workspace/src/command-line/dep-graph/dep-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@
filteredProjectNames.indexOf(d.projectName) > -1
) {
const clazz =
window.affected.indexOf(p) > -1 ? 'affected' : 'no-affected';
window.affected.indexOf(p) > -1 &&
window.affected.indexOf(d.projectName) > -1
? 'affected'
: 'no-affected';
const label =
d.type === 'implicit'
? 'implicit'
Expand Down

0 comments on commit 1aa255c

Please sign in to comment.