Skip to content

Commit

Permalink
Merge branch 'ensure-active-page' of Arnei/opencast-admin-interface i…
Browse files Browse the repository at this point in the history
…nto admin-ui-picard

Pull request #216

  Ensure there is an active page when calculating pages
  • Loading branch information
gregorydlogan committed Feb 16, 2024
2 parents c619259 + 544ef63 commit 837510b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/thunks/tableThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,5 +696,9 @@ const calculatePages = (numberOfPages, offset) => {
});
}

if (pages.every(page => page.active === false)) {
pages[0].active = true;
}

return pages;
};

0 comments on commit 837510b

Please sign in to comment.