ita-social-projects / SpaceToStudy-Client

20 stars 13 forks source link

(SP: 0.5) Fix [Error 409 (Conflict)] when saving cooperation with empty title or description #2327

Closed Olenka-Hryk closed 1 month ago

Olenka-Hryk commented 1 month ago

Fix [Error 409 (Conflict)] when saving cooperation with empty title or description

Actual result:

When saving a cooperation with a section that has an empty title or description, an Axios error with the message "Request failed with status code 409" occurs. This indicates a conflict during the request. The error occurred in the updateCooperationSection function, which is attempting to update "cooperations":

Screenshot 2024-08-13 at 19 23 37 Screenshot 2024-08-13 at 19 24 46

Expected result:

When saving a cooperation with a section that has an empty title or description, it should show a proper error popup message about not entering data into the title or description:

Screenshot 2024-08-13 at 19 43 55