Removed sensitive information tab from prod features

This commit is contained in:
Erik Tiekstra
2021-09-24 12:49:32 +02:00
parent 62fb35ca7e
commit c062b516f3
4 changed files with 9 additions and 16 deletions

View File

@@ -197,9 +197,9 @@ export class DeltagareApiService {
);
}
public fetchAvropInformation$(id: string): Observable<Avrop | Partial<Avrop>> {
public fetchAvropInformation$(id: string): Observable<Avrop> {
return this.httpClient.get<{ data: AvropResponse }>(`${this._apiBaseUrl}/${id}/avrop`).pipe(
map(({ data }) => (data ? mapAvropResponseToAvrop(data) : {})),
map(({ data }) => mapAvropResponseToAvrop(data)),
catchError((error: Error) => {
throw new CustomError(
errorToCustomError({ ...error, message: `Kunde inte hämta avropsinformation.\n\n${error.message}` })