mirror of
https://github.com/digitalocean/nginxconfig.io
synced 2024-11-10 04:24:12 +00:00
Prevent access error in phpServerOptions (#221)
* Prevent access error in phpServerOptions * fix missing semicolon
This commit is contained in:
parent
bbddeb0f13
commit
189a0fc3cf
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ THE SOFTWARE.
|
||||||
},
|
},
|
||||||
// Ensure 'Custom'/'Disabled' get translated in VueSelect on language switch
|
// Ensure 'Custom'/'Disabled' get translated in VueSelect on language switch
|
||||||
'$i18n.locale'() {
|
'$i18n.locale'() {
|
||||||
|
if (!this.$refs.phpServerOptions)
|
||||||
|
return false;
|
||||||
const updated = this.phpServerOptions
|
const updated = this.phpServerOptions
|
||||||
.find(x => x.value === this.$refs.phpServerOptions.$data._value.value);
|
.find(x => x.value === this.$refs.phpServerOptions.$data._value.value);
|
||||||
if (updated) this.$refs.phpServerOptions.$data._value = updated;
|
if (updated) this.$refs.phpServerOptions.$data._value = updated;
|
||||||
|
|
Loading…
Reference in a new issue