Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
14 stars 24 forks source link

Fix "Unknown error" on submit when there are validation messages #2042

Closed bjosttveit closed 3 weeks ago

bjosttveit commented 3 weeks ago

Description

Validation issues returned by process/next no longer causes unknown error. Instead, they are shown to the user in the error report.

Additionally, we do not look for task validations in regular backend validations anymore, as it turns out task validation does not happen there anyway.

These changes were lifted from the multiple-datamodels branch, as this issue was already fixed there.

Related Issue(s)

Verification/QA

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
62.2% Coverage on New Code (required ≥ 65%)
47.83% Condition Coverage on New Code (required ≥ 65%)

See analysis details on SonarCloud