commit 8d581deb28eda62f1434ef95f32baf61f885d0ba
parent 927117d8e3fa981f81a9de50f1c950dbec7b3549
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Wed, 30 Nov 2022 16:41:27 +0100
[bugfix] use correct key for PATCHing admin email (#1189)
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/source/settings/lib/api/admin.js b/web/source/settings/lib/api/admin.js
@@ -33,7 +33,10 @@ module.exports = function ({ apiCall, getChanges }) {
const update = getChanges(state, {
formKeys: ["title", "short_description", "description", "contact_account.username", "email", "terms", "thumbnail_description"],
- renamedKeys: {"contact_account.username": "contact_username"},
+ renamedKeys: {
+ "email": "contact_email",
+ "contact_account.username": "contact_username"
+ },
fileKeys: ["thumbnail"]
});