Browse Source

Prevent access error in phpServerOptions (#221)

* Prevent access error in phpServerOptions

* fix missing semicolon
pull/223/head
Atila Silva 4 years ago committed by GitHub
parent
commit
189a0fc3cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/nginxconfig/templates/global_sections/php.vue

2
src/nginxconfig/templates/global_sections/php.vue

@ -215,6 +215,8 @@ THE SOFTWARE.
},
// Ensure 'Custom'/'Disabled' get translated in VueSelect on language switch
'$i18n.locale'() {
if (!this.$refs.phpServerOptions)
return false;
const updated = this.phpServerOptions
.find(x => x.value === this.$refs.phpServerOptions.$data._value.value);
if (updated) this.$refs.phpServerOptions.$data._value = updated;

Loading…
Cancel
Save