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]
|
let filteredData = [...rows]
|
||||||
Object.keys(filter).forEach(field => {
|
Object.keys(filter).forEach(field => {
|
||||||
filteredData = filteredData.filter(row => {
|
if (filter[field].value != null && filter[field].value !== "") {
|
||||||
return row[field] === filter[field].value
|
filteredData = filteredData.filter(row => {
|
||||||
})
|
return row[field] === filter[field].value
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return filteredData
|
return filteredData
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue