minor bugfix, no selectedindex causes error with customflag

jschan
Thomas Lynch 2 years ago
parent d72bf85d25
commit b9900bf466
Signed by: fatchan
GPG Key ID: 112884AA57DF40B1
  1. 2
      gulp/res/js/forms.js

@ -146,7 +146,7 @@ class postFormHandler {
}
updateFlagField() {
if (this.customFlagInput) {
if (this.customFlagInput && this.customFlagInput.options.selectedIndex !== -1) {
this.selectedFlagImage.src = this.customFlagInput.options[this.customFlagInput.options.selectedIndex].dataset.src || '';
}
}

Loading…
Cancel
Save