We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4989419 + 4823363 commit b1561b5Copy full SHA for b1561b5
packages/table-render/src/core/index.tsx
@@ -57,8 +57,13 @@ const RenderCore: React.FC<TableRenderProps & { tableRef: any }> = props => {
57
pagination
58
};
59
60
- if (typeof tableProps?.pagination === 'object' && tableProps?.pagination?.pageSize) {
61
- initState.pagination.pageSize = tableProps.pagination.pageSize;
+ if (typeof tableProps?.pagination === 'object') {
+ if (tableProps?.pagination?.current) {
62
+ initState.pagination.current = tableProps.pagination.current;
63
+ }
64
+ if (tableProps?.pagination?.pageSize) {
65
+ initState.pagination.pageSize = tableProps.pagination.pageSize;
66
67
}
68
setState(initState);
69
}, []);
0 commit comments