fixed sensor
This commit is contained in:
parent
a70115d86a
commit
38ad6c583a
|
@ -88,8 +88,6 @@ export class SensorItemTree extends React.Component<SensorItemTreeProps, SensorI
|
||||||
elems.push(
|
elems.push(
|
||||||
<List.Item key={key + 1} >
|
<List.Item key={key + 1} >
|
||||||
<List.Icon name={this.state.categoryState[key] ? 'chevron up' : 'chevron down'} onClick={() => {
|
<List.Icon name={this.state.categoryState[key] ? 'chevron up' : 'chevron down'} onClick={() => {
|
||||||
|
|
||||||
{/*let newPortState: Map<number, boolean> = new Map(this.state.portState);*/ }
|
|
||||||
let newCategoryState: Map<number, boolean> = _.clone(this.state.categoryState);
|
let newCategoryState: Map<number, boolean> = _.clone(this.state.categoryState);
|
||||||
newCategoryState[key] = !newCategoryState[key];
|
newCategoryState[key] = !newCategoryState[key];
|
||||||
this.setState({ categoryState: newCategoryState });
|
this.setState({ categoryState: newCategoryState });
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { Button, Table, Label, Segment, Header, Container } from 'semantic-ui-react';
|
import { Button, Table, Label, Segment, Header, Container } from 'semantic-ui-react';
|
||||||
import { DetailContainer } from '@overflow/commons/react/component/DetailContainer';
|
import { DetailContainer } from '@overflow/commons/react/component/DetailContainer';
|
||||||
import { SensorItems } from './SensorItems';
|
|
||||||
import Sensor from '@overflow/sensor/api/model/Sensor';
|
import Sensor from '@overflow/sensor/api/model/Sensor';
|
||||||
import Probe from '@overflow/probe/api/model/Probe';
|
import Probe from '@overflow/probe/api/model/Probe';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user