Skip to content

Commit

Permalink
Merge pull request #4494 from dalibor-dev/filter-control-fix
Browse files Browse the repository at this point in the history
Fixed Filter Control select null value handling
  • Loading branch information
wenzhixin authored Jul 14, 2019
2 parents 42b2e38 + f9c3d19 commit 300e86e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const UtilsFilterControl = {
formattedValue = Utils.calculateObjectValue(that.header, column.filterDataCollector, [fieldValue, data[i], formattedValue], formattedValue)
}

if (typeof formattedValue === 'object') {
if (typeof formattedValue === 'object' && formattedValue !== null) {
formattedValue.forEach((value) => {
UtilsFilterControl.addOptionToSelectControl(selectControl, value, value, column.filterDefault)
})
Expand Down

0 comments on commit 300e86e

Please sign in to comment.