mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
pageSize of table should default to length or rows
This commit is contained in:
parent
fa2c84f3d6
commit
a684c16a09
1 changed files with 1 additions and 1 deletions
|
|
@ -657,7 +657,7 @@ export function Table({
|
|||
|
||||
React.useEffect(() => {
|
||||
if (serverSidePagination || !clientSidePagination) {
|
||||
setPageSize(-1);
|
||||
setPageSize(rows?.length || 10);
|
||||
}
|
||||
if (!serverSidePagination && clientSidePagination) {
|
||||
setPageSize(10);
|
||||
|
|
|
|||
Loading…
Reference in a new issue