Skip to content

Commit

Permalink
problems: fix duplicated page size entries, closes #696
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 5, 2019
1 parent f2d690f commit 7e73219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel-triggers/components/Problems/Problems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class ProblemList extends PureComponent<ProblemListProps, Problem
let pageSizeOptions = [5, 10, 20, 25, 50, 100];
if (pageSize) {
pageSizeOptions.push(pageSize);
pageSizeOptions = _.sortBy(pageSizeOptions);
pageSizeOptions = _.uniq(_.sortBy(pageSizeOptions));
}

return (
Expand Down

0 comments on commit 7e73219

Please sign in to comment.