properly get admin account contact from instance response
This commit is contained in:
parent
d6a2801d49
commit
45c4c1fa3f
|
@ -67,7 +67,7 @@ module.exports = function AdminSettings() {
|
|||
/>
|
||||
|
||||
<TextInput
|
||||
id="contact_username"
|
||||
id="contact_account.username"
|
||||
name="Contact user (local account username)"
|
||||
placeHolder="admin"
|
||||
/>
|
||||
|
|
|
@ -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"]
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue