diff --git a/src/views/dashboard/related/network-profiling/components/Graph/linkProcess.ts b/src/views/dashboard/related/network-profiling/components/Graph/linkProcess.ts index 6f0c5536..df32310d 100644 --- a/src/views/dashboard/related/network-profiling/components/Graph/linkProcess.ts +++ b/src/views/dashboard/related/network-profiling/components/Graph/linkProcess.ts @@ -104,16 +104,10 @@ export const anchorElement = (graph: any, funcs: any, tip: any) => { }) .attr("xlink:href", (d: Call) => { const types = [...d.sourceComponents, ...d.targetComponents]; - if (types.includes("tcp")) { + if (types.includes("tcp") || types.includes("http")) { return icons.HTTPDARK; } - if (types.includes("https")) { - return icons.HTTPS; - } - if (types.includes("http")) { - return icons.HTTPDARK; - } - if (types.includes("tls")) { + if (types.includes("https") || types.includes("tls")) { return icons.HTTPS; } });