6.4.8: Фикс кнопки назад при создании словаря
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m3s

This commit is contained in:
poignatov
2026-03-08 19:56:25 +03:00
parent 2ec5860d78
commit c911950cc1
4 changed files with 14 additions and 10 deletions

View File

@@ -187,8 +187,8 @@ function WordList({ onNavigate, dictionaryId, isNewDictionary, refreshTrigger =
await fetchDictionary(newDictionaryId)
await fetchWordsForDictionary(newDictionaryId)
// Update navigation to use the new dictionary ID and name
onNavigate?.('words', { dictionaryId: newDictionaryId, dictionaryName: newDict.name })
// Update navigation to use the new dictionary ID and name (replace history entry so back goes to dictionaries)
onNavigate?.('words', { dictionaryId: newDictionaryId, dictionaryName: newDict.name }, { replace: true })
} else if (hasValidDictionary(currentDictionaryId)) {
// Update existing dictionary (rename)
const response = await authFetch(`${API_URL}/dictionaries/${currentDictionaryId}`, {