fix getmatches string bug

This commit is contained in:
jlord 2013-08-08 09:04:04 -07:00
parent 1ca16208e5
commit d9c18fe9de

View File

@ -163,7 +163,7 @@ function getMin(data, column){
function getMatches(data, filter, category) {
var matches = []
data.forEach(function (element) {
var projectType = element[category].toLowerCase()
var projectType = element[category].toString().toLowerCase()
if (projectType === filter.toLowerCase()) matches.push(element)
})
return matches