-
Notifications
You must be signed in to change notification settings - Fork 100
feat(TeamParticipant): add grouping option for participants #6986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
e884fd5 to
74062a9
Compare
432cc5b to
f6c9f22
Compare
participantGroup may be empty, but never nil
hjpalpha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is perf wise better than my solution (less invokes)^^
comment is optional
| local tabArgs = {} | ||
|
|
||
| Array.forEach(participantGroups, function (group, groupIndex) | ||
| tabArgs['name' .. groupIndex] = Logic.emptyOr(group[1].participantGroup, 'Unnamed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a fan of 'Unnamed' (Maybe 'Placeholder' or 'Missing |group='?)
maybe just throw if it is empty and we have >1 participantGroups?
Summary
Inspired from #6985
This PR adds grouping option for team participants.
How did you test this change?
sandbox in LoL