fix: очистка формы после добавления задачи (v3.1.2)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 28s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 28s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "play-life-web",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -455,6 +455,9 @@ function TaskForm({ onNavigate, taskId }) {
|
||||
throw new Error(errorMessage)
|
||||
}
|
||||
|
||||
// Очищаем форму после успешного сохранения
|
||||
resetForm()
|
||||
|
||||
// Возвращаемся к списку задач
|
||||
onNavigate?.('tasks')
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user