loadCompleteDescription (descriptionPath: string) {
return this.authHttp
- .get(environment.apiUrl + descriptionPath)
+ .get<{ description: string }>(environment.apiUrl + descriptionPath)
.pipe(
- map((res: any) => res[ 'description' ]),
+ map(res => res.description),
catchError(err => this.restExtractor.handleError(err))
)
}