Rename a parameter to more accurately reflect its usage.

This commit is contained in:
Ben Finney 2020-06-24 22:33:31 +10:00
parent 396990cd1d
commit 8aebece218
1 changed files with 2 additions and 2 deletions

View File

@ -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])
);