From 6a21776124c24f772fd7d04bd34347f4e6ad508a Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 9 May 2021 16:04:01 +0530 Subject: [PATCH] Fix password fields not updating settings UI. Closes #332. --- frontend/src/views/Settings.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue index 8e4d99c..ad9a3d6 100644 --- a/frontend/src/views/Settings.vue +++ b/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);