Skip to content
Snippets Groups Projects
Commit 47e9bcdb authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Merge branch 'fix/avid-conflict-with-projects' into 'master'

fix: unexistent projects key on user

See merge request !144
parents 00f16153 81de947e
No related branches found
No related tags found
1 merge request!144fix: unexistent projects key on user
Pipeline #12425 passed
......@@ -39,7 +39,7 @@ converse.plugins.add('sib-subscribe-to-rai', {
let projects = [];
const user = await document.querySelector('sib-auth').getUser();
const userProfile = await store.getData(user['@id'], this.context);
if (userProfile) {
if (userProfile && userProfile['projects.ldp:contains'] !== 'undefined') {
for (let projectMembership of await userProfile['projects.ldp:contains']) {
if (projectMembership) {
projects.push(await projectMembership['project.jabberID']);
......
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