From 1df4a4ea2e2ca4332347468e8973a2dcbab06ed7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 12 Sep 2024 12:11:50 +0200 Subject: [PATCH] chore: fix comment (cherry picked from commit 1f3eb8f2a319e49cfb94fe6957950749040cbcf6) --- frontend/src/stores/labels.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/stores/labels.ts b/frontend/src/stores/labels.ts index 0c8b99f05..36bb91212 100644 --- a/frontend/src/stores/labels.ts +++ b/frontend/src/stores/labels.ts @@ -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])