Skip to content

Commit b4700fd

Browse files
MarineLeMcamrrx
authored andcommitted
[frontend] refacto target result detail (#3454)
Signed-off-by: Marine LM <[email protected]>
1 parent 1ad42dd commit b4700fd

File tree

1 file changed

+1
-1
lines changed
  • openbas-front/src/admin/components/workspaces/custom_dashboards/widgets/viz/attack_paths

1 file changed

+1
-1
lines changed

openbas-front/src/admin/components/workspaces/custom_dashboards/widgets/viz/attack_paths/AttackPath.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const AttackPath = ({ data, widgetId, simulationId, simulationStartDate = null,
171171
const createEdgesByAttackPath = (attackPath: EsAttackPath, phase: KillChainPhaseObject) => {
172172
const nodeId = getNodeId(attackPath.attackPatternId, phase);
173173
return getAllChildrenNodeId(attackPath)
174-
.filter(nodeChildId => nodeChildId !== nodeId && hoveredNodeId !== null && hoveredNodeId === nodeId)
174+
.filter(nodeChildId => nodeChildId != nodeId || (hoveredNodeId != null && hoveredNodeId != nodeId))
175175
.map((nodeChildId) => {
176176
return {
177177
id: attackPath.attackPatternId + '-' + phase.id + '-' + nodeChildId + '-edge',

0 commit comments

Comments
 (0)