X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;fp=skyquake%2Fplugins%2Fproject_management%2Fsrc%2Fdashboard%2Fdashboard.jsx;h=8ddc36567208e8ba5ae44ba2a06da105a3c7afaa;hb=cefb13b7e32e68315f5f246ff27010315c830834;hp=f8018d5e32ff0cba1225f5ac2bc1c01501c2705b;hpb=407555cd9dac9e0dd9889da18082ae275a0a44fd;p=osm%2FUI.git diff --git a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx index f8018d5e3..8ddc36567 100644 --- a/skyquake/plugins/project_management/src/dashboard/dashboard.jsx +++ b/skyquake/plugins/project_management/src/dashboard/dashboard.jsx @@ -140,7 +140,7 @@ class ProjectManagementDashboard extends React.Component { u.role && u.role.map((r,i) => { let role = {}; //you may add a user without a role or a keys, but if one is present then the other must be as well. - if(r.role ) { + if(r.role) { delete r.keys; // r.keys = projectName; switch(ROLES.PROJECT.TYPE[r.role]) { @@ -150,7 +150,8 @@ class ProjectManagementDashboard extends React.Component { } }); u.role = cleanRoles; - u["rw-project-mano:mano-role"] = cleanManoRoles + u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"] || []; + u["rw-project-mano:mano-role"] = u["rw-project-mano:mano-role"].concat(cleanManoRoles); cleanUsers.push(u); }); return cleanUsers;