Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Step 12.3: Add the params to the subscription
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 1d729e2 commit 894047b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion imports/ui/components/partiesList/partiesList.js
Expand Up @@ -19,7 +19,11 @@ class PartiesList {
name: 1
};

this.subscribe('parties');
this.subscribe('parties', () => [{
limit: parseInt(this.perPage),
skip: parseInt((this.getReactively('page') - 1) * this.perPage),
sort: this.getReactively('sort')}
]);

this.helpers({
parties() {
Expand Down

0 comments on commit 894047b

Please sign in to comment.