Skip to content

Commit

Permalink
Fix Visible Recommended Dictionary Headers
Browse files Browse the repository at this point in the history
<rikaitan.link>YjUxYzA5NGU4ODA1MzhkYmM0NTRmNGE3Y2NjYzAyNGFkMGNmMzZkYgo=</rikaitan.link>
  • Loading branch information
jason-ojisan committed Oct 13, 2024
1 parent c4d87f9 commit 469e49d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/js/pages/settings/dictionary-import-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 469e49d

Please sign in to comment.