Skip to content

Commit 189a0fc

Browse files
authored
Prevent access error in phpServerOptions (digitalocean#221)
* Prevent access error in phpServerOptions * fix missing semicolon
1 parent bbddeb0 commit 189a0fc

File tree

1 file changed

+2
-0
lines changed
  • src/nginxconfig/templates/global_sections

1 file changed

+2
-0
lines changed

src/nginxconfig/templates/global_sections/php.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ THE SOFTWARE.
215215
},
216216
// Ensure 'Custom'/'Disabled' get translated in VueSelect on language switch
217217
'$i18n.locale'() {
218+
if (!this.$refs.phpServerOptions)
219+
return false;
218220
const updated = this.phpServerOptions
219221
.find(x => x.value === this.$refs.phpServerOptions.$data._value.value);
220222
if (updated) this.$refs.phpServerOptions.$data._value = updated;

0 commit comments

Comments
 (0)