Skip to content

Commit 36fbf6b

Browse files
committed
[frontend] Sighting redirection in Entity (#8146)
1 parent dde5551 commit 36fbf6b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opencti-platform/opencti-front/src/private/components/events/stix_sighting_relationships/EntityStixSightingRelationshipLine.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,8 @@ export const EntityStixSightingRelationshipLine: FunctionComponent<EntityStixSig
256256
node,
257257
);
258258
const entity = isTo ? data.from : data.to;
259-
const isObservable = !!entity?.observable_value;
260259
const restricted = entity === null;
261-
const entityLink = (entity?.entity_type) ? `${resolveLink(entity.entity_type)}/${entity.id}` : undefined;
262-
const link = isObservable ? `${entityLink}` : `${entityLink}/knowledge/sightings/${data.id}`;
260+
const link = (data?.entity_type) ? `${resolveLink(data.entity_type)}/${data.id}` : undefined;
263261
return (
264262
<ListItem
265263
classes={{ root: classes.item }}

0 commit comments

Comments
 (0)