Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lakchote committed Sep 17, 2024
1 parent 6339f05 commit 8abfc5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/SearchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,12 @@ function buildQueryStringFromFilterValues(filterValues: Partial<SearchAdvancedFi
const filtersString: string[] = [];

if (type) {
const sanitizedType = sanitizeString(type as string);
const sanitizedType = sanitizeString(type);
filtersString.push(`${CONST.SEARCH.SYNTAX_ROOT_KEYS.TYPE}:${sanitizedType}`);
}

if (status) {
const sanitizedStatus = sanitizeString(status as string);
const sanitizedStatus = sanitizeString(status);
filtersString.push(`${CONST.SEARCH.SYNTAX_ROOT_KEYS.STATUS}:${sanitizedStatus}`);
}

Expand Down Expand Up @@ -579,7 +579,7 @@ function buildQueryStringFromFilterValues(filterValues: Partial<SearchAdvancedFi

return undefined;
})
.filter((filter): filter is string => Boolean(filter));
.filter((filter): filter is string => !!filter);

filtersString.push(...mappedFilters);

Expand Down

0 comments on commit 8abfc5c

Please sign in to comment.