fix: do not set textContent on undefined when no translation was given #2 (#3046)

* fix: do not set textContent on undefined when no translation was given
This commit is contained in:
Manuel Schmid 2024-05-29 20:33:15 +02:00 committed by GitHub
parent bf70815a66
commit 3ef663c5b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ function refresh_style_localization() {
}
function refresh_aspect_ratios_label(value) {
label = document.querySelector('#aspect_ratios_accordion div span[data-original-text="Aspect Ratios"]');
label = document.querySelector('#aspect_ratios_accordion div span');
translation = getTranslation("Aspect Ratios");
if (typeof translation == "undefined") {
translation = "Aspect Ratios";