13 lines
271 B
JavaScript
13 lines
271 B
JavaScript
Template.proficiencyViewList.helpers({
|
|
proficiencies: function(){
|
|
var selector = {
|
|
"parent.id": this.parentId,
|
|
"charId": this.charId,
|
|
};
|
|
if (this.parentGroup){
|
|
selector["parent.group"] = this.parentGroup;
|
|
}
|
|
return Proficiencies.find(selector);
|
|
}
|
|
});
|