Manuel Tauber 2024-02-27 09:29:53 +01:00
parent 5dc7acb078
commit 120a07fbf4
1 changed files with 4 additions and 1 deletions

View File

@ -146,10 +146,12 @@ export class FilterDialogComponent implements OnInit {
} }
if(this.prevFiltersSg.length == 0){ if(this.prevFiltersSg.length == 0){
this.prevFiltersSg[0] = this.userSupportGroup; this.prevFiltersSg[0] = this.userSupportGroup;
} }
this.dataService.fetchUserSupportGroup().then((res:any)=>{ this.dataService.fetchUserSupportGroup().then((res:any)=>{
console.log("\nNEW FETCHED USER SG IN FILTERCOMPONEN");
this.userSupportGroup = res.name; this.userSupportGroup = res.name;
}); });
//console.log(this.userSupportGroup); //console.log(this.userSupportGroup);
@ -164,6 +166,7 @@ export class FilterDialogComponent implements OnInit {
} }
for (const supportGroup of this.dataService.getSupportGroups()) { for (const supportGroup of this.dataService.getSupportGroups()) {
console.log("\nPUSHING SUPPORTGROUPS STORED IN DATASERVICE");
this.supportGroups.push(supportGroup.name); this.supportGroups.push(supportGroup.name);
} }
for (const contract of this.dataService.getContracts()) { for (const contract of this.dataService.getContracts()) {
@ -307,7 +310,7 @@ export class FilterDialogComponent implements OnInit {
} }
let filter = {filterElement: filterElement}; let filter = {filterElement: filterElement};
//console.log(filter); console.log(filter);
this.dialogRef.close(filter); this.dialogRef.close(filter);
} }
} }