diff --git a/ext/js/pages/settings/dictionary-import-controller.js b/ext/js/pages/settings/dictionary-import-controller.js index 27f1a69265..aaf23571ee 100644 --- a/ext/js/pages/settings/dictionary-import-controller.js +++ b/ext/js/pages/settings/dictionary-import-controller.js @@ -216,6 +216,10 @@ export class DictionaryImportController { _renderRecommendedDictionaryGroup(recommendedDictionaries, dictionariesList, installedDictionaryNames, installedDictionaryDownloadUrls) { const dictionariesListParent = dictionariesList.parentElement; dictionariesList.innerHTML = ''; + // Hide section if no dictionaries are available + if (dictionariesListParent) { + dictionariesListParent.hidden = recommendedDictionaries.length === 0; + } for (const dictionary of recommendedDictionaries) { if (dictionariesList) { if (dictionariesListParent) {