This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch fix/docs-database-page-limit-select
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 6a339190a97f070cb9f62ad57dad6bfd00b31d03
Author: Evan Rusackas <[email protected]>
AuthorDate: Tue Feb 10 13:39:16 2026 -0800

    fix(docs): make page size selector work in database table
    
    The page limit select dropdown wasn't working because `pageSize` was
    set as a static prop value. When users selected a different page size,
    it would immediately reset to 20 because the prop always overrode the
    internal state.
    
    Changed `pageSize: 20` to `defaultPageSize: 20` which allows antd's
    Table component to manage the pagination state internally while still
    defaulting to 20 items per page.
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
---
 docs/src/components/databases/DatabaseIndex.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/src/components/databases/DatabaseIndex.tsx 
b/docs/src/components/databases/DatabaseIndex.tsx
index fee4f1a36bb..26f71522dfc 100644
--- a/docs/src/components/databases/DatabaseIndex.tsx
+++ b/docs/src/components/databases/DatabaseIndex.tsx
@@ -579,7 +579,7 @@ const DatabaseIndex: React.FC<DatabaseIndexProps> = ({ data 
}) => {
         columns={columns}
         rowKey={(record) => record.isCompatible ? 
`${record.compatibleWith}-${record.name}` : record.name}
         pagination={{
-          pageSize: 20,
+          defaultPageSize: 20,
           showSizeChanger: true,
           showTotal: (total) => `${total} databases`,
         }}

Reply via email to