small update - id is an issue
This commit is contained in:
parent
6c63a8d4dc
commit
70f1629be0
1 changed files with 5 additions and 1 deletions
|
@ -110,7 +110,11 @@ export const UserFederationKerberosSettings = () => {
|
|||
console.log("SAVING as:");
|
||||
console.log(component);
|
||||
try {
|
||||
await adminClient.components.update({ id }, component);
|
||||
if (id) {
|
||||
await adminClient.components.update({ id }, component);
|
||||
} else {
|
||||
await adminClient.components.create(component);
|
||||
}
|
||||
setupForm(component as ComponentRepresentation);
|
||||
addAlert(t("saveSuccess"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue