From 4693410ff54afd61b8261277b0c80b26a3fcc8c1 Mon Sep 17 00:00:00 2001 From: FlorianDelemarre Date: Fri, 7 Feb 2025 11:38:06 +0100 Subject: [PATCH 1/2] [frontend] fix malware variants relationships (#9531) --- .../private/components/arsenal/malwares/MalwareKnowledge.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencti-platform/opencti-front/src/private/components/arsenal/malwares/MalwareKnowledge.jsx b/opencti-platform/opencti-front/src/private/components/arsenal/malwares/MalwareKnowledge.jsx index 4b69b29c7842..e78ec0ff759e 100644 --- a/opencti-platform/opencti-front/src/private/components/arsenal/malwares/MalwareKnowledge.jsx +++ b/opencti-platform/opencti-front/src/private/components/arsenal/malwares/MalwareKnowledge.jsx @@ -143,7 +143,7 @@ class MalwareKnowledgeComponent extends Component { entityLink={link} defaultStartTime={malware.first_seen} defaultStopTime={malware.last_seen} - isRelationReversed={false} + allDirections={true} /> )} /> From 8bc66a91eba10885c0b7377fe4b98e847a760591 Mon Sep 17 00:00:00 2001 From: FlorianDelemarre Date: Fri, 7 Feb 2025 11:39:04 +0100 Subject: [PATCH 2/2] [frontend] handle relationship icon isReversed (#9531) --- .../EntityStixCoreRelationshipLineAll.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/EntityStixCoreRelationshipLineAll.jsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/EntityStixCoreRelationshipLineAll.jsx index 29c38b25c961..468bc83d487b 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/EntityStixCoreRelationshipLineAll.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/EntityStixCoreRelationshipLineAll.jsx @@ -68,6 +68,7 @@ class EntityStixCoreRelationshipLineAllComponent extends Component { index, } = this.props; const remoteNode = node.from && node.from.id === entityId ? node.to : node.from; + const isReversed = node.from && node.from.id === entityId; const restricted = node.from === null || node.to === null; const link = `${entityLink}/relations/${node.id}`; return ( @@ -97,7 +98,7 @@ class EntityStixCoreRelationshipLineAllComponent extends Component { /> - +