chore: fix comment

This commit is contained in:
kolaente 2024-09-12 12:11:50 +02:00
parent 8891ef347e
commit 1f3eb8f2a3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -44,12 +44,12 @@ export const useLabelStore = defineStore('label', () => {
// **
// * Checks if a project of labels is available in the store and filters them then query
// * Checks if a list of labels is available in the store and filters them then query
// **
const filterLabelsByQuery = computed(() => {
return (labelsToHide: ILabel[], query: string) => {
const labelIdsToHide: number[] = labelsToHide.map(({id}) => id)
return search(query)
?.filter(value => !labelIdsToHide.includes(value))
.map(id => labels.value[id])