From 668e1a4d198642aae6e8a16083f87bbe3aeeddb0 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 25 Aug 2022 11:45:43 +0800 Subject: [PATCH] update --- .../network-profiling/components/Graph/linkProcess.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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; } });