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: editor - better handle api error on forms #6730

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

sim51
Copy link
Contributor

@sim51 sim51 commented Feb 23, 2024

Fix #6729

  • When saving an object, throw the error data without casting it to error
  • remove unsued code in utils/error (was commented)
  • remove margin-botton on

    on form's error so message is centered

@sim51 sim51 requested a review from a team as a code owner February 23, 2024 12:49
fix #6729

- When saving an object, throw the error data without casting it to error
- remove unsued code in utils/error (was commented)
- remove margin-botton on <p> on form's error so message is centered
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

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

Project coverage is 27.92%. Comparing base (689d6c3) to head (b4292f4).

Files Patch % Lines
.../src/applications/editor/components/EditorForm.tsx 0.00% 1 Missing ⚠️
front/src/reducers/editor/thunkActions.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6730      +/-   ##
============================================
- Coverage     27.92%   27.92%   -0.01%     
  Complexity     2172     2172              
============================================
  Files          1041     1041              
  Lines        128661   128655       -6     
  Branches       2567     2567              
============================================
- Hits          35928    35921       -7     
- Misses        91250    91251       +1     
  Partials       1483     1483              
Flag Coverage Δ
core 79.36% <ø> (ø)
editoast 75.38% <ø> (-0.01%) ⬇️
front 8.40% <0.00%> (-0.01%) ⬇️
gateway 2.50% <ø> (ø)
railjson_generator 87.26% <ø> (ø)
tests 81.95% <ø> (ø)

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.

Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

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

Lgtm, thank you for that !

@SharglutDev SharglutDev added this pull request to the merge queue Feb 23, 2024
Merged via the queue into dev with commit 7da176a Feb 23, 2024
22 checks passed
@SharglutDev SharglutDev deleted the bsi/issue-6729 branch February 23, 2024 13:47
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.

front: weird error message on editor form
2 participants