mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Fix ESLint errors with url utils
This commit is contained in:
parent
8689585d74
commit
085d0aaa26
@ -6,11 +6,5 @@ export { getCurrentQueryParams, stringifyAsQueryParam, parseQueryParamStr } from
|
|||||||
* an API call.
|
* an API call.
|
||||||
*/
|
*/
|
||||||
export function generateOrderingQueryParams(orderBy, orderAsc) {
|
export function generateOrderingQueryParams(orderBy, orderAsc) {
|
||||||
let interpolation = '';
|
return orderAsc ? orderBy : `-${orderBy}`;
|
||||||
|
|
||||||
if(!orderAsc) {
|
|
||||||
interpolation += '-';
|
|
||||||
}
|
|
||||||
|
|
||||||
return interpolation + orderBy;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user