mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-24 19:59:12 +00:00
fix odd roles that aren't defined for some reason
This commit is contained in:
parent
b1e043c678
commit
da0577a40f
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ export const getViewMap = server => {
|
|||
.map(r =>
|
||||
server.get('roles').find(sr => sr.get('id') === r)
|
||||
)
|
||||
.filter(r => r != null)
|
||||
// sort by server position, backwards.
|
||||
.sort((a, b) => a.position > b.position)
|
||||
// force data to sets
|
||||
|
|
Loading…
Add table
Reference in a new issue