Skip to content

Commit

Permalink
Fix client-generated sort parameters in channel directory
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWiederhake committed Jun 6, 2022
1 parent 881e762 commit 55b2712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/client/views/directory/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useQuery({ text, itemsPerPage, current }, [column, direction], t
text,
workspace,
}),
sort: JSON.stringify({ [column]: direction === 'asc' ? 1 : 0 }),
sort: JSON.stringify({ [column]: direction === 'asc' ? 1 : -1 }),
...(itemsPerPage && { count: itemsPerPage }),
...(current && { offset: current }),
}),
Expand Down

0 comments on commit 55b2712

Please sign in to comment.