Skip to content

Commit

Permalink
fix: filter by pipeline or group when clicking on a line
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHulme committed Oct 16, 2024
1 parent 1c5d060 commit 32ff150
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/frontend/javascript/pipeline-graph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ const applyMouseEvents = function () {
// when an edge is clicked, filter the graph to show only that pipeline
core.on('click', 'edge', (event) => {
const pipeline = event.target.data('pipeline')
applyFilter(pipeline)
const group = event.target.data('group')
const pipelineOrGroup = pipeline || group
applyFilter(pipelineOrGroup)

Check warning on line 231 in app/frontend/javascript/pipeline-graph/index.js

View check run for this annotation

Codecov / codecov/patch

app/frontend/javascript/pipeline-graph/index.js#L229-L231

Added lines #L229 - L231 were not covered by tests
})
}

0 comments on commit 32ff150

Please sign in to comment.