Skip to content

Commit

Permalink
Fixed the meeting client groups behaviour when switching from none to…
Browse files Browse the repository at this point in the history
… separated (should select groups where applicable).
  • Loading branch information
TPReal committed Oct 11, 2024
1 parent 31a5af0 commit 07645b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/features/meeting/MeetingAttendantsFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ export const MeetingAttendantsFields: VoidComponent<Props> = (props) => {
determineClientsGroupsMode(formData);
}
} else {
if (prev?.clientsGroupsMode === "none" && !props.viewMode) {
for (let i = 0; i < formData.clients.length; i++) {
setAttendanceGroup(formData, i, groupsByClientId().get(formData.clients[i]!.userId)?.[0] || "");
}
}
determineClientsGroupsMode(formData);
}
setAttendanceGroups(form.data());
Expand Down

0 comments on commit 07645b9

Please sign in to comment.