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 {