diff --git a/mean-app/src/app/data.service.ts b/mean-app/src/app/data.service.ts index 78b27cd..82ff659 100644 --- a/mean-app/src/app/data.service.ts +++ b/mean-app/src/app/data.service.ts @@ -34,10 +34,10 @@ export class DataService { } function mapData(response:Response): LineData { - return response.json().data.map(toBeer) + return response.json().map(toData) } -function toBeer(r:any): LineData{ +function toData(r:any): LineData{ let lineData = ({ data: r.TOE1, label: r.time,