diff --git a/web/src/bootstrap_typeahead.js b/web/src/bootstrap_typeahead.js index a1e9fc2588..46f4511fd4 100644 --- a/web/src/bootstrap_typeahead.js +++ b/web/src/bootstrap_typeahead.js @@ -303,10 +303,7 @@ Typeahead.prototype = { return this.shown ? this.hide() : this; } - const items = - typeof this.source === "function" - ? this.source(this.query, this.process.bind(this)) - : this.source; + const items = this.source(this.query); if (!items && this.shown) { this.hide();