Skip to content
Snippets Groups Projects
Verified Commit ae076a75 authored by Damien's avatar Damien
Browse files

FEAT #14949 TIME 1:00 Fix destination change

parent e3d1c87a
No related branches found
No related tags found
No related merge requests found
......@@ -568,7 +568,7 @@ export class DiffusionsListComponent implements OnInit {
switchUserWithOldDest(user: any, oldRole: any) {
this.http.get("../../rest/users/" + user.itemSerialId + "/entities").pipe(
map((data: any) => {
data.entities = data.entities.map((entity: any) => entity.id);
data.entities = data.entities.filter((item: any) => item.primary_entity === 'Y').map((entity: any) => entity.id);
return data;
}),
tap((data: any) => {
......
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