code4romania / code4romania/onghub

422 Unprocessable Content On Reset Feature in Open Data Tab

Open
#534 0 comments 0 reactions 0 assignees View on GitHub
bug :bug:
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.

![6](https://github.com/code4romania/onghub/assets/49789938/f4f37ad0-b06a-4859-9f95-3ce9f2d4245d)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.