From 45c4c1fa3f297786ab36765e18de1e02f92dd84d Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 16 Sep 2022 21:04:50 +0200 Subject: [PATCH] properly get admin account contact from instance response --- web/source/settings-panel/admin/settings.js | 2 +- web/source/settings-panel/lib/api/admin.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/source/settings-panel/admin/settings.js b/web/source/settings-panel/admin/settings.js index 09c8580ac..845a1f924 100644 --- a/web/source/settings-panel/admin/settings.js +++ b/web/source/settings-panel/admin/settings.js @@ -67,7 +67,7 @@ module.exports = function AdminSettings() { /> diff --git a/web/source/settings-panel/lib/api/admin.js b/web/source/settings-panel/lib/api/admin.js index 7873975f4..30b72f5e0 100644 --- a/web/source/settings-panel/lib/api/admin.js +++ b/web/source/settings-panel/lib/api/admin.js @@ -32,7 +32,8 @@ module.exports = function ({ apiCall, getChanges }) { const state = getState().instances.adminSettings; const update = getChanges(state, { - formKeys: ["title", "short_description", "description", "contact_username", "email", "terms"], + formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms"], + renamedKeys: {"contact_account.username": "contact_username"}, // fileKeys: ["avatar", "header"] });