mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-29 02:57:38 +08:00
Prevent access error in phpServerOptions (#221)
* Prevent access error in phpServerOptions * fix missing semicolon
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user