SpoonX/aurelia-autocomplete

Empty populate request

Closed this issue · 1 comments

https://github.com/SpoonX/aurelia-autocomplete/blob/master/src/component/autocomplete.js#L454

    let query = {
      populate: this.populate || 'null',
      where   : mergedWhere
    };

If populate is 'null', the request will include populate=null.
Defaulting it to an empty array will leave out the populate property in the request.

This is on purpose, due to how sails handles these requests. If the string null isn't there, it by default populates everything instead of nothing.