From 8aebece218f620bf2c68f5b071cc17442bd830a6 Mon Sep 17 00:00:00 2001 From: Ben Finney Date: Wed, 24 Jun 2020 22:33:31 +1000 Subject: [PATCH] Rename a parameter to more accurately reflect its usage. --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index d266d3b..0c52dbd 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -98,10 +98,10 @@ export default new Vuex.Store({ grimoire.isScreenshot = false; } }, - setRoles(state, roles) { + setRoles(state, roleIds) { state.roles = new Map( rolesJSON - .filter(r => roles.includes(r.id)) + .filter(r => roleIds.includes(r.id)) .sort((a, b) => b.team.localeCompare(a.team)) .map(role => [role.id, role]) );