mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-24 19:59:12 +00:00
fix(Editor): add sortBy on role position to fix non-deterministic random placements
This commit is contained in:
parent
df0905abbf
commit
1ad043aff9
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ class Category extends Component {
|
|||
</div>
|
||||
{category
|
||||
.get('roles_map')
|
||||
.sortBy(r => r.get('position'))
|
||||
.reverse()
|
||||
.map((r, k) => <Role key={k} role={r} categoryId={name} />)
|
||||
.toArray()}
|
||||
|
|
Loading…
Add table
Reference in a new issue