From e86b03ce4e2efb7668b227617de8766fbf968eb8 Mon Sep 17 00:00:00 2001 From: TheoLechemia Date: Fri, 12 Jul 2024 14:57:21 +0200 Subject: [PATCH] don't call group site group if no grp site --- .../monitoring-sites-detail.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/monitoring-sites-detail/monitoring-sites-detail.component.ts b/frontend/app/components/monitoring-sites-detail/monitoring-sites-detail.component.ts index 966943ec5..b425b4e70 100644 --- a/frontend/app/components/monitoring-sites-detail/monitoring-sites-detail.component.ts +++ b/frontend/app/components/monitoring-sites-detail/monitoring-sites-detail.component.ts @@ -191,8 +191,10 @@ export class MonitoringSitesDetailComponent extends MonitoringGeomComponent impl mergeMap((data) => { if (this.parentsPath.includes('sites_group')) { this.siteGroupIdParent = data.site.id_sites_group; + console.log(isNaN(this.siteGroupIdParent)); + } - if (isNaN(this.siteGroupIdParent)) { + if (!this.siteGroupIdParent) { return of(data); } else { return iif(