Skip to content

Commit 5efc355

Browse files
committed
fix #1450
1 parent 5ede872 commit 5efc355

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/TableHeaderColumn.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ class TableHeaderColumn extends Component {
155155
}
156156

157157
cleanFiltered() {
158-
if (this.props.filter === undefined) {
159-
return;
160-
}
158+
if (!this.props.filter) return;
161159

162160
switch (this.props.filter.type) {
163161
case Const.FILTER_TYPE.TEXT: {
@@ -188,7 +186,7 @@ class TableHeaderColumn extends Component {
188186
}
189187

190188
applyFilter(val) {
191-
if (this.props.filter === undefined) return;
189+
if (!this.props.filter) return;
192190
switch (this.props.filter.type) {
193191
case Const.FILTER_TYPE.TEXT: {
194192
this.refs.textFilter.applyFilter(val);

0 commit comments

Comments
 (0)