This commit is contained in:
Bluepr1nt
2017-04-04 14:07:32 +02:00
parent ae7c0957b6
commit 6b2f91a0b5
+2 -2
View File
@@ -34,10 +34,10 @@ export class DataService {
} }
function mapData(response:Response): LineData { 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 = <LineData>({ let lineData = <LineData>({
data: r.TOE1, data: r.TOE1,
label: r.time, label: r.time,