one of these sorts will flip it omg

This commit is contained in:
41666 2023-05-28 10:29:22 -04:00
parent 84685a14d5
commit ceca93e54d
3 changed files with 9 additions and 6 deletions

View file

@ -90,11 +90,11 @@ export const RolePicker = (props: RolePickerProps) => {
selectedRoles={selectedRoles.filter((roleId) =>
category.roles.includes(roleId)
)}
roles={(
roles={
category.roles
.map((role) => props.roles.find((r) => r.id === role))
.filter((r) => r !== undefined) as Role[]
).sort((a, b) => b.position - a.position)}
}
onChange={handleChange(category)}
wikiMode={false}
type={category.type === CategoryType.Single ? 'single' : 'multi'}