Commit ff52ba16 authored by jgould's avatar jgould

check for null field in autocomplete

parent ae428874
...@@ -635,6 +635,7 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) { ...@@ -635,6 +635,7 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) {
}); });
}); });
if (field == null) {
fields.forEach(function(field) { fields.forEach(function(field) {
if (regex.test(field)) { if (regex.test(field)) {
matches.push({ matches.push({
...@@ -645,6 +646,7 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) { ...@@ -645,6 +646,7 @@ morpheus.DatasetUtil.autocompleteValues = function(dataset) {
}); });
} }
}); });
}
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