Skip to content

Commit

Permalink
Merge pull request #608 from kinvolk/get-all-packages
Browse files Browse the repository at this point in the history
frontend: Get a high number of packages until we add real pagination
  • Loading branch information
joaquimrocha authored Jun 2, 2022
2 parents e4f2e06 + ab5438b commit a16f893
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Packages/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function List(props: { appID: string }) {
React.useEffect(() => {
applicationsStore().addChangeListener(onChange);
if (!packages) {
API.getPackages(props.appID)
// @todo: Request the pagination according to the page configuration in the table below.
API.getPackages(props.appID, '', { perpage: 1000 })
.then(result => {
if (_.isNull(result.packages)) {
setPackages([]);
Expand Down

0 comments on commit a16f893

Please sign in to comment.