Here is my approach:
getDropdownData(id: number | 195731): Observable<ClinicTrialSettingProp> {
return this.http
.get<ClinicTrialSettingProp>(this.commonPatientURL + id + '/clinic-trials')
.pipe(map(response => response.data));
}
I need to retrieve response.data
as ClinicTrialSettingProp
, how can I achieve that?
However, I encounter an error saying:
Property 'data' does not exist on type 'ClinicTrialSettingProp'.