diff --git a/ereuse_devicehub/static/js/main_inventory.build.js b/ereuse_devicehub/static/js/main_inventory.build.js index f323fa78..546f398c 100644 --- a/ereuse_devicehub/static/js/main_inventory.build.js +++ b/ereuse_devicehub/static/js/main_inventory.build.js @@ -97,7 +97,7 @@ var _tableRows = { }; var _tableRowsPage = { writable: true, - value: () => table.pages[table.rows().dt.currentPage - 1] + value: () => table.pages[table.rows.dt.currentPage - 1] }; const selectorController = action => { diff --git a/ereuse_devicehub/static/js/main_inventory.js b/ereuse_devicehub/static/js/main_inventory.js index e9600273..dc0a09a7 100644 --- a/ereuse_devicehub/static/js/main_inventory.js +++ b/ereuse_devicehub/static/js/main_inventory.js @@ -21,7 +21,7 @@ $(document).ready(() => { class TableController { static #tableRows = () => table.activeRows.length > 0 ? table.activeRows : []; - static #tableRowsPage = () => table.pages[table.rows().dt.currentPage - 1]; + static #tableRowsPage = () => table.pages[table.rows.dt.currentPage - 1]; /** * @returns Selected inputs from device list