From 772bc4ca248d59f8b17a86d4a5635de757743800 Mon Sep 17 00:00:00 2001 From: snoop Date: Fri, 25 Aug 2017 13:03:48 +0900 Subject: [PATCH] sensor setup ing --- .../react/components/SensorConfigStepper.tsx | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/ts/@overflow/sensor/react/components/SensorConfigStepper.tsx b/src/ts/@overflow/sensor/react/components/SensorConfigStepper.tsx index e8a9d4d..f32b675 100644 --- a/src/ts/@overflow/sensor/react/components/SensorConfigStepper.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorConfigStepper.tsx @@ -120,25 +120,18 @@ export class SensorConfigStepper extends React.Component = new Array; - - // let msiArray: MetaSensorItem[]; - // let msi: MetaSensorItem; - // for (let key of Array.from(sensorData.sensorItemMap.keys())) { - // msiArray = sensorData.sensorItemMap[key]; - // for (let msi of msiArray) { - // msiList.push(msi); - // } - // } + let siList: Array = new Array; sensorData.sensorItemMap.forEach( (value: MetaSensorItem[], key: number) => { for(let msi of value) { - msiList.push(msi); + siList.push({ + item: {id: msi.id}, + }); } }); console.log(sensor); - console.log(msiList); + console.log(siList); } public showContent(): any {