Skip to content

Commit

Permalink
don't call group site group if no grp site
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLechemia committed Jul 12, 2024
1 parent 1043c3f commit e86b03c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e86b03c

Please sign in to comment.