diff --git a/docs/src/pages/components/tables/CustomPaginationActionsTable.js b/docs/src/pages/components/tables/CustomPaginationActionsTable.js
index bf18262382a066..552dfc339ba36b 100644
--- a/docs/src/pages/components/tables/CustomPaginationActionsTable.js
+++ b/docs/src/pages/components/tables/CustomPaginationActionsTable.js
@@ -133,7 +133,10 @@ export default function CustomPaginationActionsTable() {
- {rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(row => (
+ {(rowsPerPage > 0
+ ? rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
+ : rows
+ ).map(row => (
{row.name}
diff --git a/docs/src/pages/components/tables/CustomPaginationActionsTable.tsx b/docs/src/pages/components/tables/CustomPaginationActionsTable.tsx
index 8fa90ee980e5ef..7803a51c176fc9 100644
--- a/docs/src/pages/components/tables/CustomPaginationActionsTable.tsx
+++ b/docs/src/pages/components/tables/CustomPaginationActionsTable.tsx
@@ -138,7 +138,10 @@ export default function CustomPaginationActionsTable() {
- {rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map(row => (
+ {(rowsPerPage > 0
+ ? rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
+ : rows
+ ).map(row => (
{row.name}