Fixed SRD spells not getting a random ID when inserted

fixes #64
fixes #65
This commit is contained in:
Stefan Zermatten
2017-05-08 11:21:30 +02:00
parent 9a3edb07e4
commit 52b34d7dfa

View File

@@ -258,6 +258,7 @@ Template.spells.events({
}
// Make the library spell into a regular spell
let spell = _.omit(result, "library", "attacks", "effects");
spell._id = spellId;
spell.charId = charId;
spell.parent = {
id: listId,