Skip to content

fix: report modal validation - #1263

Open
ThibaudDauce wants to merge 3 commits into
mainfrom
fix/report-modal-validation
Open

ThibaudDauce wants to merge 3 commits into
mainfrom
fix/report-modal-validation

Conversation

@ThibaudDauce

@ThibaudDauce ThibaudDauce commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Fix https://errors.data.gouv.fr/organizations/sentry/issues/305008/

FetchError /datasets/:did()/discussions
[POST] "https://www.data.gouv.fr/api/1/reports/?lang=fr": 400

  • use native required validation instead of useForm (doesn't work with SelectGroup, need to check this in another PR)
  • remove auto-spam choice in select
  • give an error in a toast if there is a problem with the POST

…ired never blocks, and allow the expected 400 in the API error test

This branch has not been deployed

No deployments
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.

1 participant