FIX: ensures filteredContent is recomputed when sortBy changes (#30)

This commit is contained in:
Joffrey JAFFEUX 2018-12-28 10:28:28 +01:00 committed by Rishabh
parent 7de1e5a68e
commit 0d655221f4
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default Ember.Controller.extend({
sortBy: ["last_run_at:desc"],
sortedQueries: Em.computed.sort("model", "sortBy"),
@computed("search")
@computed("search", "sortBy")
filteredContent(search) {
const regexp = new RegExp(this.get("search"), "i");
return this.get("sortedQueries").filter(function(result) {