Skip to content

Commit

Permalink
feat(pat-autosuggest): load more
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhardt committed Jan 3, 2024
1 parent 6703ac7 commit 8aa1a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pat/auto-suggest/auto-suggest.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ export default Base.extend({
results: (data, page) => {
// parse the results into the format expected by Select2.
// data must be a list of objects with keys "id" and "text"
return { results: data, page: page };
var more = Object.keys(data).length >= 10;
return { results: data, page: page, more: more };
},
},
},
Expand Down

0 comments on commit 8aa1a62

Please sign in to comment.