sensor detail items

This commit is contained in:
snoop 2017-08-10 19:27:39 +09:00
parent d5ca790290
commit f79d59e8cd
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ const reduxConfig: ReduxConfig = {
readAllByTargetReducer, readAllByTargetReducer,
SensorReadReducer, SensorReadReducer,
signUpReducer, signUpReducer,
SensorItemReadAllBySensorReducer,
], ],
sagaWatchers: [ sagaWatchers: [
AsyncRequest, AsyncRequest,

View File

@ -51,7 +51,7 @@ export class SensorDetailItems extends React.Component<Props, State> {
<Table.Body> <Table.Body>
{ {
this.state.sensorItemList.map((sensorItem: SensorItem, idx: number) => { this.props.sensorItemList ? this.props.sensorItemList.map((sensorItem: SensorItem, idx: number) => {
return ( return (
<Table.Row key={idx}> <Table.Row key={idx}>
<Table.Cell>{idx}</Table.Cell> <Table.Cell>{idx}</Table.Cell>
@ -60,7 +60,7 @@ export class SensorDetailItems extends React.Component<Props, State> {
<Table.Cell>{sensorItem.item.key}</Table.Cell> <Table.Cell>{sensorItem.item.key}</Table.Cell>
</Table.Row> </Table.Row>
); );
}) }) : ''
} }
</Table.Body> </Table.Body>