diff --git a/app/assets/javascripts/discourse/app/lib/autocomplete.js b/app/assets/javascripts/discourse/app/lib/autocomplete.js index 47cde9a4f87..2e5b69013a7 100644 --- a/app/assets/javascripts/discourse/app/lib/autocomplete.js +++ b/app/assets/javascripts/discourse/app/lib/autocomplete.js @@ -473,7 +473,7 @@ export default function(options) { inputSelectedItems.push(""); } - if (_.isString(inputSelectedItems[0]) && me.val().length > 0) { + if (typeof inputSelectedItems[0] === "string" && me.val().length > 0) { inputSelectedItems.pop(); inputSelectedItems.push(me.val()); if (options.onChangeItems) {