Commit d4bbd33b authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-c/auto_complete_empty_set' into 'dev'

autocomplete.js fix autocomplete on undefined data

Closes #2706

See merge request !92
parents 9a4455fd dabb0e68
......@@ -121,6 +121,9 @@ VidjilAutoComplete.prototype = {
return $.fn.atwho.default.callbacks.filter(query, data, searchKey);
},
beforeSave: function(tags) {
if (tags.length == 1 && tags[0] == VidjilAutoComplete.defaultLoadingData[0]) {
return tags;
}
return $.map(tags, function(i) {
if (i.name === null) {
return i;
......
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