From fc49d5796e388105ebbd537650b42fe0f4ff16bb Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Mon, 13 Jan 2020 16:49:05 +0800 Subject: [PATCH] fix: error when modifying server config --- gui/src/components/modalServer.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/src/components/modalServer.vue b/gui/src/components/modalServer.vue index ece2048c..5a0aaefc 100644 --- a/gui/src/components/modalServer.vue +++ b/gui/src/components/modalServer.vue @@ -179,7 +179,9 @@ - + @@ -504,6 +506,9 @@ export default { continue; } let x = this.$refs[k]; + if (!x) { + continue; + } if ( x.hasOwnProperty("checkHtml5Validity") && typeof x.checkHtml5Validity === "function" &&