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,
SensorReadReducer,
signUpReducer,
SensorItemReadAllBySensorReducer,
],
sagaWatchers: [
AsyncRequest,

View File

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