We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13bf6dc + 85da6a5 commit 8fadfdaCopy full SHA for 8fadfda
src/pat/auto-suggest/auto-suggest.js
@@ -260,11 +260,15 @@ export default Base.extend({
260
quietMillis: this.options.ajax.timeout,
261
data: (term, page) => {
262
const request_data = {
263
- index: this.options.ajax["search-index"],
264
q: term, // search term
265
page: page,
266
};
267
+ const index = this.options.ajax["search-index"];
268
+ if (index) {
269
+ request_data.index = index;
270
+ }
271
+
272
const page_limit = this.page_limit(page);
273
if (page_limit > 0) {
274
request_data.page_limit = page_limit;
0 commit comments