Commit ff52ba16 authored by jgould's avatar jgould

check for null field in autocomplete

parent ae428874
...@@ -635,16 +635,18 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) { ...@@ -635,16 +635,18 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) {
}); });
}); });
fields.forEach(function(field) { if (field == null) {
if (regex.test(field)) { fields.forEach(function(field) {
matches.push({ if (regex.test(field)) {
value : field + ':', matches.push({
label : '<span style="font-weight:300;">' + field value : field + ':',
+ ':</span>', label : '<span style="font-weight:300;">' + field
show : true + ':</span>',
}); show : true
} });
}); }
});
}
cb(matches); cb(matches);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment