Skip to content
Snippets Groups Projects
Verified Commit d2c25828 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12668 TIME 0:15 infinite loading if only redirect to user

parent 638a5032
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,7 @@ export class RedirectActionComponent implements OnInit { ...@@ -140,6 +140,7 @@ export class RedirectActionComponent implements OnInit {
map(user => user ? this._filterUserRedirect(user) : this.userListRedirect.slice()) map(user => user ? this._filterUserRedirect(user) : this.userListRedirect.slice())
); );
this.loading = false;
if (this.data.resIds.length == 1) { if (this.data.resIds.length == 1) {
this.http.get("../../rest/resources/" + this.data.resIds[0] + "/listInstance").subscribe((data: any) => { this.http.get("../../rest/resources/" + this.data.resIds[0] + "/listInstance").subscribe((data: any) => {
this.diffusionListDestRedirect = data.listInstance; this.diffusionListDestRedirect = data.listInstance;
...@@ -185,7 +186,7 @@ export class RedirectActionComponent implements OnInit { ...@@ -185,7 +186,7 @@ export class RedirectActionComponent implements OnInit {
this.notify.handleErrors(err); this.notify.handleErrors(err);
}); });
if (this.keepDestForRedirection) { if (this.keepDestForRedirection && this.currentDiffusionListDestRedirect.length > 0) {
let isInCopy = false; let isInCopy = false;
let newCopy = null; let newCopy = null;
this.currentDiffusionListDestRedirect.forEach((element: any) => { this.currentDiffusionListDestRedirect.forEach((element: 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