From f79d59e8cd78d52422ce278b7d940f58918ff082 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 10 Aug 2017 19:27:39 +0900 Subject: [PATCH] sensor detail items --- src/ts/@overflow/app/config/index.ts | 1 + .../@overflow/sensor/react/components/SensorDetailItems.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/app/config/index.ts b/src/ts/@overflow/app/config/index.ts index 6b7bd6a..24cb44a 100644 --- a/src/ts/@overflow/app/config/index.ts +++ b/src/ts/@overflow/app/config/index.ts @@ -51,6 +51,7 @@ const reduxConfig: ReduxConfig = { readAllByTargetReducer, SensorReadReducer, signUpReducer, + SensorItemReadAllBySensorReducer, ], sagaWatchers: [ AsyncRequest, diff --git a/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx b/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx index 979dcbb..ae4d0eb 100644 --- a/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorDetailItems.tsx @@ -51,7 +51,7 @@ export class SensorDetailItems extends React.Component { { - this.state.sensorItemList.map((sensorItem: SensorItem, idx: number) => { + this.props.sensorItemList ? this.props.sensorItemList.map((sensorItem: SensorItem, idx: number) => { return ( {idx} @@ -60,7 +60,7 @@ export class SensorDetailItems extends React.Component { {sensorItem.item.key} ); - }) + }) : '' }