Applying character no longer duplicated in buff apply list

This commit is contained in:
Jacob
2017-08-09 15:14:28 +01:00
parent 2b188f1a8d
commit 64ef426035

View File

@@ -11,9 +11,9 @@ Template.applyBuffDialog.helpers({
},
writableCharacters: function() {
var returnArray = [];
Characters.find({}).forEach(function(char){ //we look through all characters we have access to
Characters.find({_id: {$ne: this.buff.charId}}).forEach(function(char){ //we look through all characters we have access to
if (canEditCharacter(char._id)) {
returnArray.push(char)
returnArray.push(char);
}
});
return returnArray;