From 8ea11c8f9eee08424d78292e19b469713c90f7db Mon Sep 17 00:00:00 2001 From: Dave Date: Sat, 13 Mar 2021 09:59:44 +0000 Subject: [PATCH] Changing the clearRoles mutator to preserve the player pronouns when clearing all roles as a storyteller. --- src/store/modules/players.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/modules/players.js b/src/store/modules/players.js index 83bd351..30d4d2b 100644 --- a/src/store/modules/players.js +++ b/src/store/modules/players.js @@ -80,10 +80,11 @@ const actions = { return player; }); } else { - players = state.players.map(({ name, id }) => ({ + players = state.players.map(({ name, id, pronouns }) => ({ ...NEWPLAYER, name, - id + id, + pronouns })); commit("setFabled", { fabled: [] }); }