fixing table.rows()

This commit is contained in:
Cayo Puigdefabregas 2022-11-14 10:00:33 +01:00
parent 3d658a9051
commit 17df239599
2 changed files with 2 additions and 2 deletions

View file

@ -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 => {

View file

@ -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