From dbdd5c5da06e92fbdaef2822fa3cf32db98ef743 Mon Sep 17 00:00:00 2001 From: Leon Shi Date: Thu, 26 May 2016 15:01:50 +0800 Subject: [PATCH] fix: throws error when filtering data with `pagination` set to `false`, close #1842 --- components/table/index.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index e0b83a4b0d..fe22e9047a 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -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,