Исправлена передача имени словаря
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m4s

This commit is contained in:
poignatov
2026-01-22 19:32:52 +03:00
parent e823312f0e
commit 5a7c8b5d2f
4 changed files with 8 additions and 6 deletions

View File

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