Work around nullable ints

This commit is contained in:
2025-07-30 22:01:15 -07:00
parent 47bc07e327
commit f3a0611b1d
6 changed files with 8 additions and 8 deletions
@@ -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([""]);