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';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
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 { TranslateService } from '@ngx-translate/core';
import { AuthService } from '../../service/auth.service';
......@@ -79,16 +79,15 @@ export class GroupComponent implements OnInit {
map((data: any) => data.group),
finalize(() => {
this.loading = false;
})
)
.subscribe({
next: data => {
}),
tap((data: any) => {
this.group = data;
this.groupClone = JSON.parse(JSON.stringify(this.group));
this.title = this.group.label;
this.updateDataTable();
},
});
})
)
.subscribe();
this.http.get('../rest/users?mode=all')
.pipe(
......
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