fix: throws error when filtering data with pagination set to false, close #1842

This commit is contained in:
Leon Shi 2016-05-26 15:01:50 +08:00
parent 56f4f0688d
commit dbdd5c5da0

View File

@ -262,9 +262,11 @@ export default class Table extends React.Component {
}
});
// Reset current prop
pagination.current = 1;
pagination.onChange(pagination.current);
if (props.pagination) {
// Reset current prop
pagination.current = 1;
pagination.onChange(pagination.current);
}
const newState = {
selectionDirty: false,