fixed hostMap number -> string
This commit is contained in:
parent
8e5773b590
commit
00b068769f
@ -221,7 +221,7 @@ export class MapComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
const probeMap: Map<number, InfraHost[]> = new Map();
|
const probeMap: Map<number, InfraHost[]> = new Map();
|
||||||
|
|
||||||
const hostMap: Map<number, InfraService[]> = new Map();
|
const hostMap: Map<string, InfraService[]> = new Map();
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ export class MapComponent implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
generateInfraTree(probeMap: Map<number, InfraHost[]>, hostMap: Map<number, InfraService[]>): TreeNode {
|
generateInfraTree(probeMap: Map<number, InfraHost[]>, hostMap: Map<string, InfraService[]>): TreeNode {
|
||||||
|
|
||||||
const infraTree = {
|
const infraTree = {
|
||||||
label: 'Infra',
|
label: 'Infra',
|
||||||
@ -318,7 +318,7 @@ export class MapComponent implements OnInit, AfterContentInit {
|
|||||||
return infraTree;
|
return infraTree;
|
||||||
}
|
}
|
||||||
|
|
||||||
sortInfraToMap(probeMap: Map<number, InfraHost[]>, hostMap: Map<number, InfraService[]>, filterStr: string) {
|
sortInfraToMap(probeMap: Map<number, InfraHost[]>, hostMap: Map<string, InfraService[]>, filterStr: string) {
|
||||||
|
|
||||||
for (const infra of this.totalList) {
|
for (const infra of this.totalList) {
|
||||||
const infraType = infra.infraType.name;
|
const infraType = infra.infraType.name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user