From 17e6bbf9f18711c8ef3bf8c6428bfb6cb923780a Mon Sep 17 00:00:00 2001 From: poignatov Date: Mon, 9 Mar 2026 21:42:18 +0300 Subject: [PATCH] =?UTF-8?q?6.4.12:=20=D0=9D=D0=B0=D0=B2=D0=B8=D0=B3=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20=D0=BD=D0=B0=D0=B7=D0=B0=D0=B4=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=81=D1=82=D0=B5=D0=BA=D1=83=20=D0=BF=D0=BE=D1=81?= =?UTF-8?q?=D0=BB=D0=B5=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- VERSION | 2 +- play-life-web/package.json | 2 +- play-life-web/src/components/TaskForm.jsx | 6 +++--- play-life-web/src/components/WishlistForm.jsx | 8 ++------ 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/VERSION b/VERSION index e5a66ba..d613169 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.4.11 +6.4.12 diff --git a/play-life-web/package.json b/play-life-web/package.json index 70181d7..0ec45fd 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.4.11", + "version": "6.4.12", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/TaskForm.jsx b/play-life-web/src/components/TaskForm.jsx index 1cad80a..44da907 100644 --- a/play-life-web/src/components/TaskForm.jsx +++ b/play-life-web/src/components/TaskForm.jsx @@ -774,9 +774,9 @@ function TaskForm({ onNavigate, taskId, wishlistId, isTest: isTestFromProps = fa newTaskId: newTaskId, }) } else { - console.log('[TaskForm] No returnTo, navigating to tasks') - // Стандартное поведение - возврат к списку задач - onNavigate?.('tasks') + console.log('[TaskForm] No returnTo, going back in history') + // Возврат назад по стеку истории (на список задач, желаний и т.д.) + window.history.back() } } catch (err) { setToastMessage({ text: err.message || 'Ошибка при сохранении задачи', type: 'error' }) diff --git a/play-life-web/src/components/WishlistForm.jsx b/play-life-web/src/components/WishlistForm.jsx index 8fe6280..303711e 100644 --- a/play-life-web/src/components/WishlistForm.jsx +++ b/play-life-web/src/components/WishlistForm.jsx @@ -712,12 +712,8 @@ function WishlistForm({ onNavigate, wishlistId, editConditionIndex, newTaskId, b } resetForm() - // Возвращаемся на доску, если она была указана - if (boardId) { - onNavigate?.('wishlist', { boardId }) - } else { - onNavigate?.('wishlist') - } + // Возврат назад по стеку истории + window.history.back() } catch (err) { setError(err.message) } finally {