6.4.10: Фикс закрытия диалога желания при создании задачи
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s

This commit is contained in:
poignatov
2026-03-09 21:10:02 +03:00
parent 37d5c87a55
commit b47d50f51c
3 changed files with 8 additions and 2 deletions

View File

@@ -1 +1 @@
6.4.9 6.4.10

View File

@@ -1,6 +1,6 @@
{ {
"name": "play-life-web", "name": "play-life-web",
"version": "6.4.9", "version": "6.4.10",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -174,7 +174,13 @@ function WishlistDetail({ wishlistId, onNavigate, onRefresh, boardId, onClose, p
const handleCreateTask = () => { const handleCreateTask = () => {
if (!wishlistItem || !wishlistItem.unlocked || wishlistItem.completed) return if (!wishlistItem || !wishlistItem.unlocked || wishlistItem.completed) return
// Сначала навигация, потом закрытие диалога желания
onNavigate?.('task-form', { wishlistId: wishlistId }) onNavigate?.('task-form', { wishlistId: wishlistId })
// Убираем запись из истории без вызова popstate
if (historyPushedForWishlistRef.current) {
historyPushedForWishlistRef.current = false
}
onClose?.()
} }
const handleTaskCheckmarkClick = (e) => { const handleTaskCheckmarkClick = (e) => {