diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/users/utils.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/utils.ts b/server/sonar-web/src/main/js/apps/users/utils.ts index 937c46eadc1..abb0fcc3d78 100644 --- a/server/sonar-web/src/main/js/apps/users/utils.ts +++ b/server/sonar-web/src/main/js/apps/users/utils.ts @@ -24,12 +24,15 @@ export interface Query { search: string; } -export const parseQuery = memoize((urlQuery: RawQuery): Query => ({ - search: parseAsString(urlQuery['search']) -})); - -export const serializeQuery = memoize((query: Query): RawQuery => - cleanQuery({ - search: query.search ? serializeString(query.search) : undefined +export const parseQuery = memoize( + (urlQuery: RawQuery): Query => ({ + search: parseAsString(urlQuery['search']) }) ); + +export const serializeQuery = memoize( + (query: Query): RawQuery => + cleanQuery({ + search: query.search ? serializeString(query.search) : undefined + }) +); |