Added correct handling of empty selection (first line)

This commit is contained in:
ignalion
2018-07-29 15:45:58 +03:00
parent 3c37716dd2
commit 485503c54d
+1 -1
View File
@@ -54,7 +54,7 @@ export default (Base, {
const { dataField, filter } = column;
const needClearFilters = !_.isDefined(filterVal) || filterVal === '' ||
filterVal.length === 0; // || (filterVal.length === 1 && filterVal[0] === '');
filterVal.length === 0 || (filterVal.length === 1 && filterVal[0] === '');
if (needClearFilters) {
delete currFilters[dataField];