fix 404 issue on new
This commit is contained in:
parent
733d5f4b6f
commit
489ed64049
2 changed files with 10 additions and 6 deletions
|
@ -93,10 +93,12 @@ export const UserFederationKerberosSettings = () => {
|
|||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
if (id !== "new") {
|
||||
const fetchedComponent = await adminClient.components.findOne({ id });
|
||||
if (fetchedComponent) {
|
||||
setupForm(fetchedComponent);
|
||||
}
|
||||
}
|
||||
})();
|
||||
}, []);
|
||||
|
||||
|
|
|
@ -123,10 +123,12 @@ export const UserFederationLdapSettings = () => {
|
|||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
if (id !== "new") {
|
||||
const fetchedComponent = await adminClient.components.findOne({ id });
|
||||
if (fetchedComponent) {
|
||||
setupForm(fetchedComponent);
|
||||
}
|
||||
}
|
||||
})();
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in a new issue