From ac772531ee1b5df8bedc74c72e340e9cc3bfc659 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 8 May 2017 11:21:30 +0200 Subject: [PATCH] Fixed SRD spells not getting a random ID when inserted fixes #64 fixes #65 --- rpg-docs/client/views/character/spells/spells.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rpg-docs/client/views/character/spells/spells.js b/rpg-docs/client/views/character/spells/spells.js index 85b010ba..a633f017 100644 --- a/rpg-docs/client/views/character/spells/spells.js +++ b/rpg-docs/client/views/character/spells/spells.js @@ -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,