Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Nov 12, 2024
1 parent 979b7c0 commit 4cde248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/components/ReviewPage/ReviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ const InnerReviewPage: FC<ReviewPageProps> = ({ clientConfig, organism, group, a
(showNoIssues ? noIssuesCount : 0) +
(showWarnings ? warningCount : 0) +
(showErrors ? errorCount : 0);

// If we narrowed the selection and the selected page doesn't exist anymore, go to the last existing page instead
if ((pageQuery.page - 1) * pageQuery.size > selectedCount ) {
setPageQuery({ ...pageQuery, page: Math.ceil(selectedCount / pageQuery.size) })
if ((pageQuery.page - 1) * pageQuery.size > selectedCount) {
setPageQuery({ ...pageQuery, page: Math.ceil(selectedCount / pageQuery.size) });
}

if (total === 0) {
Expand Down

0 comments on commit 4cde248

Please sign in to comment.