Skip to content

Conversation

@BeautifulSnowleopard
Copy link
Owner

No description provided.

@BeautifulSnowleopard BeautifulSnowleopard changed the base branch from main to task4 December 26, 2023 12:25
Comment on lines +130 to +136
fetch(API_URL + `/${editState}`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(obj),
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут стоило дожидаться окончания запроса и только потом обновлять карточку. Иначе, если сервер ответит с ошибкой, на фронте карточка будет обновлена, а на бэке - нет

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.

3 participants