Use default attributes in import form (#4052)
This commit is contained in:
parent
ec31aeee41
commit
b5e9eb4620
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ export default function ImportForm() {
|
|||
try {
|
||||
const newClient = await adminClient.clients.create({
|
||||
...imported,
|
||||
...convertFormValuesToObject(client),
|
||||
...convertFormValuesToObject({
|
||||
...client,
|
||||
attributes: client.attributes || {},
|
||||
}),
|
||||
});
|
||||
addAlert(t("clientImportSuccess"), AlertVariant.success);
|
||||
navigate(toClient({ realm, clientId: newClient.id, tab: "settings" }));
|
||||
|
|
Loading…
Reference in a new issue