Skip to content

Commit

Permalink
Fix hiding and unhiding of elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Jul 29, 2024
1 parent 3fdb94c commit 706859f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/js/pages/settings/dictionary-import-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ export class DictionaryImportController {

if (!(language in recommendedDictionaries)) {
for (const {element} of recommendedDictionaryCategories) {
element.hidden = true;
const dictionaryCategoryParent = element.parentElement;
if (dictionaryCategoryParent) {
dictionaryCategoryParent.hidden = true;
}
}
return;
}
Expand Down

0 comments on commit 706859f

Please sign in to comment.