-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[frontend] Fix correlated cases is not working #4818
[frontend] Fix correlated cases is not working #4818
Conversation
...i-platform/opencti-front/src/private/components/cases/case_incidents/CaseIncidentDetails.tsx
Outdated
Show resolved
Hide resolved
opencti-platform/opencti-front/src/private/components/analyses/reports/ReportDetails.jsx
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4818 +/- ##
==============================
==============================
☔ View full report in Codecov by Sentry. |
@@ -233,7 +233,7 @@ const CaseIncidentDetails: FunctionComponent<CaseIncidentDetailsProps> = ({ | |||
{t('Correlated cases')} | |||
</Typography> | |||
<List classes={{ root: classes.relatedContainers }}> | |||
{expandable | |||
{(data.relatedContainers?.edges && data.relatedContainers.edges.length >= 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, let's talk about that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to extract the filtering of the list before the return and check that this computed list as at least one element
…/ ReportDetails / CaseIncidentDetails / CaseRfiDetails / CaseRftDetails
Proposed changes
Related issues
Checklist
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...