mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix(Table): Add warning when Table current is negative number
This commit is contained in:
parent
67377f2735
commit
d9c67cec59
@ -336,6 +336,7 @@ function Table<RecordType extends object = any>(props: TableProps<RecordType>) {
|
||||
}
|
||||
|
||||
const { current = 1, total, pageSize = DEFAULT_PAGE_SIZE } = mergedPagination;
|
||||
devWarning(current > 0, 'Table', '`current` should be positive number.');
|
||||
|
||||
// Dynamic table data
|
||||
if (mergedData.length < total!) {
|
||||
|
Loading…
Reference in New Issue
Block a user