Don't filter repeater results when filter is null
This commit is contained in:
parent
17a9e44ef6
commit
6df2f2b1a1
|
@ -36,9 +36,11 @@
|
|||
}
|
||||
let filteredData = [...rows]
|
||||
Object.keys(filter).forEach(field => {
|
||||
filteredData = filteredData.filter(row => {
|
||||
return row[field] === filter[field].value
|
||||
})
|
||||
if (filter[field].value != null && filter[field].value !== "") {
|
||||
filteredData = filteredData.filter(row => {
|
||||
return row[field] === filter[field].value
|
||||
})
|
||||
}
|
||||
})
|
||||
return filteredData
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue