fix getmatches string bug

This commit is contained in:
jlord 2013-08-08 09:04:04 -07:00
parent 1ca16208e5
commit d9c18fe9de
1 changed files with 1 additions and 1 deletions

View File

@ -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