webpack/components/TemplateSyncResult/TemplateSyncResultHelpers.js in foreman_templates-9.1.0 vs webpack/components/TemplateSyncResult/TemplateSyncResultHelpers.js in foreman_templates-9.2.0

- old
+ new

@@ -1,6 +1,6 @@ // move to some sort of pagination helper in core export const templatesPage = (templates, pagination) => { - const offset = (pagination.page - 1) * pagination.perPage; + const offset = (pagination.page - 1) * pagination.per_page; - return templates.slice(offset, offset + pagination.perPage); + return templates.slice(offset, offset + pagination.per_page); };