code4romania / code4romania/onghub
422 Unprocessable Content On Reset Feature in Open Data Tab
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
**Preconditions**:
User must be logged in as Super-Admin
The 'Sumar Activitate' section from "ONG-ul in numere" tab must be completed
**Steps of Reproduction**:
1. Click on kebab menu
2. Select the 'Elimina Date' option
**Expected Result**:
2. The data are reset
**Actual Result**:
2. The section is refreshed but the data are not reset. The BE return the following error:
```
{
"statusCode": 422,
"message": "invalid input syntax for type integer: \"NaN\"",
"code": "22P02",
"timestamp": "2024-07-08T12:51:02.800Z",
"path": "/organization/undefined",
"method": "PATCH",
"stack": {}
}
```
**NOTE**:
- It would improve the user experience to add a confirmation modal.

Contributor guide
Assessment
This issue has not been assessed yet.