From 51ffbb429cbf546c44765cf7f80e37e2dae48d0c Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Mon, 7 Feb 2022 18:13:28 +0100 Subject: [PATCH] fix(admin): broken link in structure was making admin panel crash --- .../administred-structures.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/admin/components/manage-users/administred-structures/administred-structures.component.html b/src/app/admin/components/manage-users/administred-structures/administred-structures.component.html index 5943c0250..1755b8225 100644 --- a/src/app/admin/components/manage-users/administred-structures/administred-structures.component.html +++ b/src/app/admin/components/manage-users/administred-structures/administred-structures.component.html @@ -1,5 +1,5 @@ <div id="structure-list" *ngIf="structures.data.structures && structures.data.structures.length != 0"> <p *ngFor="let structure of structures.data.structures"> - <a href="/acteurs?id={{ structure._id }}" target="_blank">{{ structure.structureName }}</a> + <a *ngIf="structure" href="/acteurs?id={{ structure._id }}" target="_blank">{{ structure.structureName }}</a> </p> </div> -- GitLab