From ad74ad2961added12caeee6d7671a6c7ae784860 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 25 Oct 2023 15:53:12 +0300 Subject: [PATCH] Fix filter handler --- client/src/components/Grid/GridList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/Grid/GridList.vue b/client/src/components/Grid/GridList.vue index d4b5eff4cde3..e67017e1b6dd 100644 --- a/client/src/components/Grid/GridList.vue +++ b/client/src/components/Grid/GridList.vue @@ -66,10 +66,10 @@ const showAdvanced = ref(false); * Manually set filter value, used for tags and `SharingIndicators` */ function applyFilter(filter: string, value: string | boolean, quoted = false) { - const setFilterValue = gridConfig.value?.filtering.setFilterValue; + const filtering = gridConfig.value?.filtering; const quotedValue = quoted ? `'${value}'` : value; - if (setFilterValue) { - filterText.value = setFilterValue(filterText.value, filter, quotedValue.toString()) || ""; + if (filtering) { + filterText.value = filtering.setFilterValue(filterText.value, filter, quotedValue.toString()) || ""; } }