Skip to content

Commit

Permalink
Merge pull request #189 from code4romania/hotfix/typescript-errors
Browse files Browse the repository at this point in the history
fix build issues
  • Loading branch information
RaduCStefanescu authored Nov 24, 2019
2 parents da43546 + 9872a9a commit cea8df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/components/answer/answer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LoadAnswerDetailsAction, LoadAnswerPreviewAction } from '../../store/an
import { AnswerState } from '../../store/answer/answer.reducer';
import { FormState } from '../../store/form/form.reducer';
import { AppState } from '../../store/store.module';
import { AnswersService } from '../../services/answers.service';
import { AnswersService, AnswersPackFilter } from '../../services/answers.service';
import { Component, OnInit } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Rx';
Expand Down Expand Up @@ -91,7 +91,7 @@ export class AnswerComponent implements OnInit {
}

if (this.isValidValue(this.pollingStationNumber)) {
filter.pollingStationNumber = this.pollingStationNumber;
filter.pollingStationNumber = this.pollingStationNumber as any;
}

if (this.isValidValue(this.observerId)) {
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/app/services/answers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export class AnswersService {
const urlWithParams = paramBuilder.build();

const url: string = Location.joinWithSlash(this.baseUrl, urlWithParams);
return this.http.get(url, {
responseType: 'blob'
});
return this.http.get<Blob>(url);
}
}

Expand Down

0 comments on commit cea8df0

Please sign in to comment.