err fix
This commit is contained in:
@@ -4,9 +4,11 @@ import {
|
||||
Header,
|
||||
Container,
|
||||
Popup,
|
||||
Image,
|
||||
} from 'semantic-ui-react';
|
||||
import { Notification } from '@overflow/commons/react/component/Notification';
|
||||
|
||||
|
||||
export class LogoBar extends React.Component<any, any> {
|
||||
|
||||
constructor(props: any, context: any) {
|
||||
|
||||
@@ -142,14 +142,14 @@ export class SensorItemTree extends React.Component<SensorItemTreeProps, SensorI
|
||||
SensorJsonData.map((data: any, idx: number) => {
|
||||
let sensorItem: MetaSensorItem = data;
|
||||
|
||||
if (this.itemMap.has(sensorItem.metaSensorItemType.id)) {
|
||||
this.itemMap.get(sensorItem.metaSensorItemType.id).metaSensorItemList.push(sensorItem);
|
||||
if (this.itemMap.has(sensorItem.itemType.id)) {
|
||||
this.itemMap.get(sensorItem.itemType.id).metaSensorItemList.push(sensorItem);
|
||||
} else {
|
||||
let item: TreeItem = { metaSensorItemList: null, metaSensorItemType: null };
|
||||
item.metaSensorItemList = [];
|
||||
item.metaSensorItemList.push(sensorItem);
|
||||
item.metaSensorItemType = this.GetMetaSensorItemType(sensorItem.metaSensorItemType.id);
|
||||
this.itemMap.set(sensorItem.metaSensorItemType.id, item);
|
||||
item.metaSensorItemType = this.GetMetaSensorItemType(sensorItem.itemType.id);
|
||||
this.itemMap.set(sensorItem.itemType.id, item);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ export class ProbeHost extends React.Component<Props, State> {
|
||||
<Table.Cell collapsing>
|
||||
<Header size='small'>OS vendor type</Header>
|
||||
</Table.Cell>
|
||||
<Table.Cell>{this.state.host.os.vendor.type.name}</Table.Cell>
|
||||
<Table.Cell>{this.state.host.os.vendor.infraType.name}</Table.Cell>
|
||||
</Table.Row>
|
||||
</Table.Body>
|
||||
</Table>
|
||||
|
||||
@@ -99,7 +99,7 @@ export class SensorBasicInfo extends React.Component<SensorBasicInfoProps, Senso
|
||||
<Table.Cell>
|
||||
<Header size='small'>Name</Header>
|
||||
</Table.Cell>
|
||||
<Table.Cell>{this.state.sensor.target.infra.type.name}</Table.Cell>
|
||||
<Table.Cell>{this.state.sensor.target.displayName}</Table.Cell>
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
|
||||
@@ -62,7 +62,7 @@ export class SensorDetailInfo extends React.Component<SensorDetailInfoProps, Sen
|
||||
<Table.Cell>
|
||||
<Header size='small'>Name</Header>
|
||||
</Table.Cell>
|
||||
<Table.Cell>{this.state.sensor.target.infra.type.name}</Table.Cell>
|
||||
<Table.Cell>{this.state.sensor.target.displayName}</Table.Cell>
|
||||
</Table.Row>
|
||||
<Table.Row>
|
||||
<Table.Cell>
|
||||
|
||||
@@ -52,7 +52,7 @@ export class SensorDetailItems extends React.Component<Props, State> {
|
||||
return (
|
||||
<Table.Row key={idx}>
|
||||
<Table.Cell>{idx}</Table.Cell>
|
||||
<Table.Cell>{sensorItem.item.metaSensorItemType.name}</Table.Cell>
|
||||
<Table.Cell>{sensorItem.item.itemType.name}</Table.Cell>
|
||||
<Table.Cell>{sensorItem.item.name}</Table.Cell>
|
||||
<Table.Cell>{sensorItem.item.key}</Table.Cell>
|
||||
</Table.Row>
|
||||
|
||||
Reference in New Issue
Block a user