diff --git a/frontend/src/app/data.service.ts b/frontend/src/app/data.service.ts
index 8c25620..7412fac 100644
--- a/frontend/src/app/data.service.ts
+++ b/frontend/src/app/data.service.ts
@@ -141,7 +141,20 @@ export class DataService {
* @returns the name of the corresponding contract
*/
public getContractName(contractId: string): string{
- return this.contracts.find((contract)=> {return contract.id == contractId;}).name;
+ for (const contract of this.contracts) {
+ if(contract.id == contractId){
+ console.log(contract);
+ return contract.name;
+ }
+ }
+ console.log("KEIN VERTRAG GEFUNDEN");
+ return "";
+ // console.log(this.contracts);
+ // if(!this.contracts.find((contract)=> {contract.id == contractId;})){
+ // console.log("ERROR");
+ // console.log()
+ // }
+ // return this.contracts.find((contract)=> {return contract.id == contractId;}).name;
}
/**
diff --git a/frontend/src/app/filter-dialog/filter-dialog.component.ts b/frontend/src/app/filter-dialog/filter-dialog.component.ts
index 8898f19..d53eadc 100644
--- a/frontend/src/app/filter-dialog/filter-dialog.component.ts
+++ b/frontend/src/app/filter-dialog/filter-dialog.component.ts
@@ -193,9 +193,9 @@ export class FilterDialogComponent implements OnInit {
for (const contract of this.dataService.getContracts()) {
this.contracts.push(contract.name);
}
- for (const paketType of this.dataService.getPaketTypes()) {
- this.paketTypes.push(paketType.name);
- }
+ // for (const paketType of this.dataService.getPaketTypes()) {
+ // this.paketTypes.push(paketType.name);
+ // }
}
/**
diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.html b/frontend/src/app/ntt-gantt/ntt-gantt.component.html
index 0c33aa8..d448d98 100644
--- a/frontend/src/app/ntt-gantt/ntt-gantt.component.html
+++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.html
@@ -55,7 +55,7 @@
-