diff --git a/app/routes/Apps/Gluu/GluuInlineInput.js b/app/routes/Apps/Gluu/GluuInlineInput.js index 8e6568baa..afd6a2cc0 100644 --- a/app/routes/Apps/Gluu/GluuInlineInput.js +++ b/app/routes/Apps/Gluu/GluuInlineInput.js @@ -40,6 +40,7 @@ function GluuInlineInput({ })(Tooltip) const [show, setShow] = useState(false) const [correctValue, setCorrectValue] = useState([]) + const [data, setData] = useState(value) const onValueChanged = () => { setShow(true) } @@ -57,11 +58,12 @@ function GluuInlineInput({ } patch['op'] = 'replace' handler(patch) - setShow(false) + setShow(!show) + setData(document.getElementById(name).value) } const onCancel = () => { setCorrectValue([]) - setShow(false) + setShow(!show) } return ( @@ -75,7 +77,7 @@ function GluuInlineInput({ id={name} name={name} type={type} - defaultValue={value} + defaultValue={data} onChange={onValueChanged} /> @@ -112,14 +114,14 @@ function GluuInlineInput({ {show && ( -
+ <> {' '} -
+ )}
diff --git a/plugins/auth-server/redux/api/OIDCApi.js b/plugins/auth-server/redux/api/OIDCApi.js index 3c47ab822..02717df68 100644 --- a/plugins/auth-server/redux/api/OIDCApi.js +++ b/plugins/auth-server/redux/api/OIDCApi.js @@ -81,7 +81,7 @@ export default class OIDCApi { deletable: false, } return new Promise((resolve, reject) => { - // data['client'] = client + // data['client'] = client this.api.postOauthOpenidClients(data, (error, res) => { if (error) { reject(error)