Skip to content
Snippets Groups Projects
Commit e306763d authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #16699 TIME 0:20 changed subscribe into tap

parent cf7d6fae
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ import { HttpClient } from '@angular/common/http'; ...@@ -5,7 +5,7 @@ import { HttpClient } from '@angular/common/http';
import { MatDialog } from '@angular/material/dialog'; import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator'; import { MatPaginator } from '@angular/material/paginator';
import { MatSort, Sort } from '@angular/material/sort'; import { MatSort, Sort } from '@angular/material/sort';
import { map, finalize } from 'rxjs/operators'; import { map, finalize, tap } from 'rxjs/operators';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { AuthService } from '../../service/auth.service'; import { AuthService } from '../../service/auth.service';
...@@ -79,16 +79,15 @@ export class GroupComponent implements OnInit { ...@@ -79,16 +79,15 @@ export class GroupComponent implements OnInit {
map((data: any) => data.group), map((data: any) => data.group),
finalize(() => { finalize(() => {
this.loading = false; this.loading = false;
}) }),
) tap((data: any) => {
.subscribe({
next: data => {
this.group = data; this.group = data;
this.groupClone = JSON.parse(JSON.stringify(this.group)); this.groupClone = JSON.parse(JSON.stringify(this.group));
this.title = this.group.label; this.title = this.group.label;
this.updateDataTable(); this.updateDataTable();
}, })
}); )
.subscribe();
this.http.get('../rest/users?mode=all') this.http.get('../rest/users?mode=all')
.pipe( .pipe(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment