sensor regist

This commit is contained in:
snoop 2017-08-25 18:08:47 +09:00
parent 9a59e73acf
commit fa5bb021af

View File

@ -122,6 +122,10 @@ export class ETCSelector extends React.Component<ETCSelectorProps, ETCSelectorSt
this.state = { this.state = {
interval: '5', interval: '5',
}; };
let sd = this.props.getSensor();
sd.interval = 5;
this.props.setSensor(sd);
} }
public handleIntervalChange = (e: any, { value }: any) => { public handleIntervalChange = (e: any, { value }: any) => {
this.setState({ interval: value }); this.setState({ interval: value });