From fc503321aeb18d711e069da1030ac8b58ccc790d Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 3 Apr 2024 20:48:51 +0800 Subject: [PATCH] fix: gantt block pagination (#3918) * fix: gantt block pagination * fix: gantt block pagination --- .../blocks/data-blocks/table/hooks/useTableBlockProps.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx index 38af64654..4550d835e 100644 --- a/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx +++ b/packages/core/client/src/modules/blocks/data-blocks/table/hooks/useTableBlockProps.tsx @@ -46,7 +46,7 @@ export const useTableBlockProps = () => { showIndex: ctx.showIndex, dragSort: ctx.dragSort && ctx.dragSortBy, rowKey: ctx.rowKey || 'id', - pagination: field.componentProps.pagination, + pagination: fieldSchema?.['x-component-props']?.pagination, onRowSelectionChange: useCallback((selectedRowKeys) => { ctx.field.data = ctx?.field?.data || {}; ctx.field.data.selectedRowKeys = selectedRowKeys;