Fix problem with persons for `Berufsbildner`
This commit is contained in:
parent
ca37f74e45
commit
eef166575f
|
|
@ -13,7 +13,12 @@ const props = defineProps<{
|
|||
participantUserIds: string[];
|
||||
}>();
|
||||
|
||||
log.debug("AgentAssignmentDetail created", props.courseSlug, props.agentRole);
|
||||
log.debug(
|
||||
"AgentAssignmentDetail created",
|
||||
props.courseSlug,
|
||||
props.agentRole,
|
||||
props.participantUserIds
|
||||
);
|
||||
|
||||
const courseSession = useCurrentCourseSession();
|
||||
const { loading } = useExpertCockpitPageData(
|
||||
|
|
|
|||
|
|
@ -209,10 +209,10 @@ def _create_person_list_with_roles(user):
|
|||
if participant_user.id not in result_persons:
|
||||
person_data = create_user_dict(participant_user)
|
||||
person_data["course_sessions"] = [course_session_entry]
|
||||
result_persons[participant_user] = person_data
|
||||
result_persons[participant_user.id] = person_data
|
||||
else:
|
||||
# user is already in result_persons
|
||||
result_persons[participant_user]["course_sessions"].append(
|
||||
result_persons[participant_user.id]["course_sessions"].append(
|
||||
course_session_entry
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue