Skip to content
Snippets Groups Projects
Commit cf3991c2 authored by m431m's avatar m431m :speech_balloon:
Browse files

Merge branch 'redmine-issues/12237' into 'develop'

REDMINE_ISSUE-12237 | Fix "TypeError: Cannot read properties of null (reading 'id')"

See merge request onegeo-suite/sites/onegeo-suite-site-login-vuejs!15
parents e53e946a 46e16eda
No related branches found
No related tags found
No related merge requests found
Pipeline #4722 passed with warnings
......@@ -132,7 +132,7 @@
</div>
<div class="row g-2 align-items-center" style="margin-bottom: 0.5em;">
<div class="col-3">
<label class="col-form-label">Organisation(s)</label>
<label class="col-form-label" style="font-size: 0.87em;">Organisation(s)/Groupe(s)</label>
</div>
<div v-if="userData" class="col">
<div v-if="userData.usergroup_roles.length === 0">
......@@ -143,10 +143,12 @@
>
<b-list-group-item
v-for="usergroup of userData.usergroup_roles"
:key="usergroup.organisation.id"
:key="usergroup.usergroup.id"
disabled
>
{{ usergroup.organisation.display_name }} <em>en tant que</em> {{ organisationsRoles.find(el => el.choice === usergroup.role).label }}
<b>{{ usergroup.usergroup.display_name }}</b>
<em> en tant que </em>
<b>{{ organisationsRoles.find(el => el.choice === usergroup.role).label }}</b>
</b-list-group-item>
</b-list-group>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment