Added correct handling of empty selection (first line)

This commit is contained in:
ignalion 2018-07-25 19:29:34 +03:00
parent 3c37716dd2
commit 485503c54d

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];