mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 11:29:12 +00:00
fix role order in picker
This commit is contained in:
parent
33a8a0048f
commit
84685a14d5
1 changed files with 2 additions and 2 deletions
|
@ -90,11 +90,11 @@ export const RolePicker = (props: RolePickerProps) => {
|
||||||
selectedRoles={selectedRoles.filter((roleId) =>
|
selectedRoles={selectedRoles.filter((roleId) =>
|
||||||
category.roles.includes(roleId)
|
category.roles.includes(roleId)
|
||||||
)}
|
)}
|
||||||
roles={
|
roles={(
|
||||||
category.roles
|
category.roles
|
||||||
.map((role) => props.roles.find((r) => r.id === role))
|
.map((role) => props.roles.find((r) => r.id === role))
|
||||||
.filter((r) => r !== undefined) as Role[]
|
.filter((r) => r !== undefined) as Role[]
|
||||||
}
|
).sort((a, b) => b.position - a.position)}
|
||||||
onChange={handleChange(category)}
|
onChange={handleChange(category)}
|
||||||
wikiMode={false}
|
wikiMode={false}
|
||||||
type={category.type === CategoryType.Single ? 'single' : 'multi'}
|
type={category.type === CategoryType.Single ? 'single' : 'multi'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue