Commit 1c35f0b5 authored by jakeburden's avatar jakeburden

Simplify sortParams string builder

parent 34f65dd9
......@@ -44,7 +44,7 @@ export const fetchReleasesGraphQl = (
const { sort, orderBy } = state.sorting;
const orderByParam = orderBy === 'created_at' ? 'created' : orderBy;
const sortParams = `${orderByParam.toUpperCase()}_${sort.toUpperCase()}`;
const sortParams = `${orderByParam}_${sort}`.toUpperCase();
let paginationParams;
if (!before && !after) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment