Skip to content

Commit

Permalink
[Fix]fix ldap config not update at change (#3117)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan1998 authored Jan 31, 2024
1 parent 4b743da commit 9063fe8
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ export const LdapConfig = ({ data, onSave, auth }: LdapConfigProps) => {
setLoading(false);
};

const onSaveHandler = (data: BaseConfigProperties) => {
const onSaveHandler = async (data: BaseConfigProperties) => {
setLoading(true);
onSave(data);
setTimeout(() => {
setLoading(false);
}, 1000);
await onSave(data);
setLoading(false);
};

/**
Expand Down

0 comments on commit 9063fe8

Please sign in to comment.