opencti
opencti copied to clipboard
[frontend] Selecting a domain as a nested object of an Ipv4 crashes the front (#6919)
Proposed changes
- empty array added for relationshipTypes to avoid crach on R.head(relationshipTypes)
Related issues
- https://github.com/OpenCTI-Platform/opencti/issues/6919
Checklist
- [ ] I consider the submitted work as finished
- [ ] I tested the code for its functionality
- [ ] I wrote test cases for the relevant uses case (coverage and e2e)
- [ ] I added/update the relevant documentation (either on github or on notion)
- [ ] Where necessary I refactored code to improve the overall quality
Further comments
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 67.50%. Comparing base (
9c10a5b) to head (4ec5454).
Additional details and impacted files
@@ Coverage Diff @@
## master #6923 +/- ##
==========================================
+ Coverage 67.48% 67.50% +0.01%
==========================================
Files 561 561
Lines 68323 68323
Branches 5700 5702 +2
==========================================
+ Hits 46109 46119 +10
+ Misses 22214 22204 -10
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR is just to avoid the crash Another one has been created to rework the next part : https://github.com/OpenCTI-Platform/opencti/issues/7064