webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js in foreman_leapp-0.1.9 vs webpack/components/PreupgradeReports/PreupgradeReportsHelpers.js in foreman_leapp-0.1.10
- old
+ new
@@ -55,12 +55,12 @@
export const idsForInvocationFromReports = reports =>
idsForInvocationFromEntries(flattenEntries(reports));
export const entriesPage = (entries, pagination) => {
- const offset = (pagination.page - 1) * pagination.perPage;
+ const offset = (pagination.page - 1) * pagination.per_page;
- return entries.slice(offset, offset + pagination.perPage);
+ return entries.slice(offset, offset + pagination.per_page);
};
export const filterEntries = (attribute, value, entries) => {
if (!value) {
return entries;