Merge branch 'fixbug-116' into misc-enhancements

This commit is contained in:
Jacob
2017-07-20 16:18:49 +01:00
2 changed files with 8 additions and 3 deletions

View File

@@ -7,7 +7,10 @@ Template.characterList.helpers({
); );
}, },
parties() { parties() {
return Parties.find({owner: Meteor.userId()}); return Parties.find(
{owner: Meteor.userId()},
{sort: {name: 1}},
);
}, },
charactersInParty(partyId) { charactersInParty(partyId) {
var userId = Meteor.userId(); var userId = Meteor.userId();

View File

@@ -5,8 +5,10 @@ Template.characterSideList.onCreated(function() {
Template.characterSideList.helpers({ Template.characterSideList.helpers({
parties() { parties() {
var userId = Meteor.userId(); return Parties.find(
return Parties.find({owner: userId}); {owner: Meteor.userId()},
{sort: {name: 1}},
);
}, },
charactersInParty() { charactersInParty() {
var userId = Meteor.userId(); var userId = Meteor.userId();