Unverified Commit 9063fe8e authored by gaoyan's avatar gaoyan Committed by GitHub

[Fix]fix ldap config not update at change (#3117)

parent 4b743dac
...@@ -47,12 +47,10 @@ export const LdapConfig = ({ data, onSave, auth }: LdapConfigProps) => { ...@@ -47,12 +47,10 @@ export const LdapConfig = ({ data, onSave, auth }: LdapConfigProps) => {
setLoading(false); setLoading(false);
}; };
const onSaveHandler = (data: BaseConfigProperties) => { const onSaveHandler = async (data: BaseConfigProperties) => {
setLoading(true); setLoading(true);
onSave(data); await onSave(data);
setTimeout(() => {
setLoading(false); setLoading(false);
}, 1000);
}; };
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment