diff --git a/imports/ui/components/partiesList/partiesList.js b/imports/ui/components/partiesList/partiesList.js index 199a0b882..c7221dfd4 100644 --- a/imports/ui/components/partiesList/partiesList.js +++ b/imports/ui/components/partiesList/partiesList.js @@ -22,11 +22,13 @@ class PartiesList { this.sort = { name: 1 }; + this.searchText = ''; this.subscribe('parties', () => [{ - limit: parseInt(this.perPage), - skip: parseInt((this.getReactively('page') - 1) * this.perPage), - sort: this.getReactively('sort')} + limit: parseInt(this.perPage), + skip: parseInt((this.getReactively('page') - 1) * this.perPage), + sort: this.getReactively('sort') + }, this.getReactively('searchText') ]); this.helpers({