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("SAVING as:");
|
||||||
console.log(component);
|
console.log(component);
|
||||||
try {
|
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);
|
setupForm(component as ComponentRepresentation);
|
||||||
addAlert(t("saveSuccess"), AlertVariant.success);
|
addAlert(t("saveSuccess"), AlertVariant.success);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue