Skip to content

Commit

Permalink
Fix filter handler
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Oct 27, 2023
1 parent 5ac2210 commit ad74ad2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/Grid/GridList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()) || "";
}
}
Expand Down

0 comments on commit ad74ad2

Please sign in to comment.