Skip to content

Commit f7ae33e

Browse files
IdirLISNObada Haddad
authored andcommitted
Edit participant ui bug fixed
1 parent 8b853bb commit f7ae33e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/static/riot/competitions/editor/_participation.tag

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,13 @@
462462
}).then(data => {
463463
if (data && data.status === 'ok' && data.group) {
464464
const g = data.group
465+
if (!self.editing_group) {
466+
const selectedUsers = (self.available_users || [])
467+
.filter(u => user_ids.includes(String(u.id)))
468+
.map(u => u.username)
469+
g.members = selectedUsers
470+
}
471+
465472
let found = false
466473
for (let i = 0; i < self.available_groups.length; i++) {
467474
if (self.available_groups[i].id === g.id) {

0 commit comments

Comments
 (0)