浏览代码

Fix password fields not updating settings UI.

Closes #332.
Kailash Nadh 4 年之前
父节点
当前提交
6a21776124
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      frontend/src/views/Settings.vue

+ 2 - 1
frontend/src/views/Settings.vue

@@ -661,7 +661,8 @@ export default Vue.extend({
 
     getSettings() {
       this.$api.getSettings().then((data) => {
-        const d = data;
+        const d = JSON.parse(JSON.stringify(data));
+
         // Serialize the `email_headers` array map to display on the form.
         for (let i = 0; i < d.smtp.length; i += 1) {
           d.smtp[i].strEmailHeaders = JSON.stringify(d.smtp[i].email_headers, null, 4);