chore: simplify filtering labels by title
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-11-13 17:09:34 +01:00
parent 66eafd6ac9
commit 2ce847004b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 3 deletions

View File

@ -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: {