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) {
});
});
fields.forEach(function(field) {
if (regex.test(field)) {
matches.push({
value : field + ':',
label : '<span style="font-weight:300;">' + field
+ ':</span>',
show : true
});
}
});
if (field == null) {
fields.forEach(function(field) {
if (regex.test(field)) {
matches.push({
value : field + ':',
label : '<span style="font-weight:300;">' + field
+ ':</span>',
show : true
});
}
});
}
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