Fix bug which is now critical
This commit is contained in:
parent
5724d14583
commit
6e7706f9bf
|
@ -155,6 +155,14 @@ class PreviewPaneComponent extends AuthComponent {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
islandAssetInfo() {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
No info to show
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
assetInfo(asset) {
|
assetInfo(asset) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -244,8 +252,8 @@ class PreviewPaneComponent extends AuthComponent {
|
||||||
info = this.scanInfo(this.props.item);
|
info = this.scanInfo(this.props.item);
|
||||||
break;
|
break;
|
||||||
case 'node':
|
case 'node':
|
||||||
info = this.props.item.group.includes('monkey', 'manual') ?
|
info = this.props.item.group.includes('monkey', 'manual') ? this.infectedAssetInfo(this.props.item) :
|
||||||
this.infectedAssetInfo(this.props.item) : this.assetInfo(this.props.item);
|
this.props.item.group !== 'island' ? this.assetInfo(this.props.item) : this.islandAssetInfo();
|
||||||
break;
|
break;
|
||||||
case 'island_edge':
|
case 'island_edge':
|
||||||
info = this.islandEdgeInfo();
|
info = this.islandEdgeInfo();
|
||||||
|
|
Loading…
Reference in New Issue