chore: simplify filtering labels by title
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
66eafd6ac9
commit
2ce847004b
|
@ -48,9 +48,7 @@ export default {
|
|||
getLabelsByExactTitles(state) {
|
||||
return labelTitles => Object
|
||||
.values(state.labels)
|
||||
.filter(({title}) => {
|
||||
return labelTitles.some(l => l.toLowerCase() === title.toLowerCase())
|
||||
})
|
||||
.filter(({title}) => labelTitles.some(l => l.toLowerCase() === title.toLowerCase()))
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
|
|
Reference in New Issue