Instanceof operator was not working so changed the way of checking it

This commit is contained in:
2022-07-17 08:17:13 +05:30
parent 4072733dfe
commit dbdd00119a
27 changed files with 36 additions and 44 deletions

View File

@ -42,9 +42,10 @@ export class RoleDetailComponent implements OnInit, AfterViewInit {
ngOnInit() {
this.route.data.subscribe((value) => {
const data = value as { item: Role };
this.item = data.item;
this.form.controls.name.setValue(this.item.name);
this.form.controls.permissions.reset();
this.item.permissions.forEach((x) =>
this.form.controls.permissions.push(
new FormGroup({