Skip to content
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

front: stdcm: display only CH codes associated with the selected PR #8944

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

SarahBellaha
Copy link
Contributor

Closes #8938

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.

Project coverage is 37.13%. Comparing base (68e0513) to head (36e12df).

Files with missing lines Patch % Lines
...tions/stdcmV2/components/StdcmOperationalPoint.tsx 0.00% 14 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##                dev    #8944   +/-   ##
=========================================
  Coverage     37.13%   37.13%           
  Complexity     2211     2211           
=========================================
  Files          1260     1260           
  Lines        115076   115078    +2     
  Branches       3230     3230           
=========================================
+ Hits          42736    42737    +1     
- Misses        70407    70408    +1     
  Partials       1933     1933           
Flag Coverage Δ
core 74.67% <ø> (ø)
editoast 72.56% <ø> (+<0.01%) ⬆️
front 15.20% <0.00%> (-0.01%) ⬇️
gateway 2.20% <ø> (ø)
osrdyne 2.60% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +69 to +70
const isDuplicate = acc.some((option) => option.label === newObject.label);
if (!isDuplicate) acc.push(newObject);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can try to use a set, so you don't have to bother checking if it's a duplicate or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STDCM: The selected value is cleared for certain CHs
3 participants