fix getmatches string bug
This commit is contained in:
parent
1ca16208e5
commit
d9c18fe9de
@ -163,7 +163,7 @@ function getMin(data, column){
|
|||||||
function getMatches(data, filter, category) {
|
function getMatches(data, filter, category) {
|
||||||
var matches = []
|
var matches = []
|
||||||
data.forEach(function (element) {
|
data.forEach(function (element) {
|
||||||
var projectType = element[category].toLowerCase()
|
var projectType = element[category].toString().toLowerCase()
|
||||||
if (projectType === filter.toLowerCase()) matches.push(element)
|
if (projectType === filter.toLowerCase()) matches.push(element)
|
||||||
})
|
})
|
||||||
return matches
|
return matches
|
||||||
|
Loading…
Reference in New Issue
Block a user