diff --git a/app/assets/v2/js/shared.js b/app/assets/v2/js/shared.js index 28d4f18f3b1..9be7d1d4765 100644 --- a/app/assets/v2/js/shared.js +++ b/app/assets/v2/js/shared.js @@ -166,9 +166,7 @@ var sanitizeAPIResults = function(results, keyToIgnore) { return results; } - results = [results]; - results[0] = sanitizeDict(results[0], keyToIgnore); - return results[0]; + return sanitizeDict(results, keyToIgnore); }; function ucwords(str) {