From 17df239599342e52d7f186ebd3ee58303d0b3669 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 14 Nov 2022 10:00:33 +0100 Subject: [PATCH] fixing table.rows() --- ereuse_devicehub/static/js/main_inventory.build.js | 2 +- ereuse_devicehub/static/js/main_inventory.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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