From 189a0fc3cf466943f4565e4eefb1a6494d50b0ec Mon Sep 17 00:00:00 2001 From: Atila Silva Date: Wed, 10 Feb 2021 13:11:22 -0300 Subject: [PATCH] Prevent access error in phpServerOptions (#221) * Prevent access error in phpServerOptions * fix missing semicolon --- src/nginxconfig/templates/global_sections/php.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nginxconfig/templates/global_sections/php.vue b/src/nginxconfig/templates/global_sections/php.vue index 99a2758..7111638 100644 --- a/src/nginxconfig/templates/global_sections/php.vue +++ b/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;