diff --git a/src/components/Table/index.jsx b/src/components/Table/index.jsx index e24639b1..577277aa 100644 --- a/src/components/Table/index.jsx +++ b/src/components/Table/index.jsx @@ -162,10 +162,11 @@ class GnoTable extends React.Component, State> { input: classes.white, } - const sortedData = stableSort(data, getSorting(orderParam, orderByParam, orderProp), fixedParam).slice( - page * rowsPerPage, - page * rowsPerPage + rowsPerPage, - ) + let sortedData = stableSort(data, getSorting(orderParam, orderByParam, orderProp), fixedParam) + + if (!disablePagination) { + sortedData = sortedData.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) + } const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage) const isEmpty = size === 0