opencti icon indicating copy to clipboard operation
opencti copied to clipboard

[frontend] Selecting a domain as a nested object of an Ipv4 crashes the front (#6919)

Open ValentinBouzinFiligran opened this issue 1 year ago • 1 comments

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

ValentinBouzinFiligran avatar May 10 '24 12:05 ValentinBouzinFiligran

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.

codecov[bot] avatar May 10 '24 13:05 codecov[bot]

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

ValentinBouzinFiligran avatar May 22 '24 09:05 ValentinBouzinFiligran