fix(Role): calculate position correctly when rawPositions are equal (#9871)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Vlad Frangu
2023-10-07 16:14:22 +00:00
committed by GitHub
co-authored by kodiakhq[bot]
parent f58628385c
commit 0529b2af95
+1 -1
View File
@@ -205,7 +205,7 @@ class Role extends Base {
(acc, role) =>
acc +
(this.rawPosition === role.rawPosition
? BigInt(this.id) > BigInt(role.id)
? BigInt(this.id) < BigInt(role.id)
: this.rawPosition > role.rawPosition),
0,
);