Work around nullable ints
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="top-bar">
|
||||
<button *ngFor="let company of Employers" (click)="changeSelectedCompany(company.company.id)">{{ company.company.name.toUpperCase() }}</button>
|
||||
<button *ngFor="let company of Employers" (click)="changeSelectedCompany(company.company.id!)">{{ company.company.name.toUpperCase() }}</button>
|
||||
<button routerLink="/company/connect" >CONNECT A COMPANY</button>
|
||||
</div>
|
||||
<div class="content-frame">
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
<h1>Modified: {{ cur.modifiedTime }}</h1>
|
||||
</div>
|
||||
<button [routerLink]="['/jobs/editor']" [queryParams]="{ JobID: cur.id }" >EDIT</button>
|
||||
<button (click)="RemoveJobListing(cur.id)">DELETE</button>
|
||||
<button (click)="RemoveJobListing(cur.id!)">DELETE</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -71,7 +71,7 @@ export class JobEditorComponent {
|
||||
}
|
||||
|
||||
PostJobListing(jobListing: JobListing){
|
||||
jobListing.companyID = this.selectedCompany.id;
|
||||
jobListing.companyID = this.selectedCompany.id!;
|
||||
this.http.post("api/joblisting", jobListing).subscribe({
|
||||
next: data => {
|
||||
this.router.navigate([""]);
|
||||
|
||||
Reference in New Issue
Block a user