mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): add curly brackets
This commit is contained in:
parent
5c057409b7
commit
12246ae230
@ -59,15 +59,18 @@ export const EditUserForm: FC<ComponentFormProps<EditUserFormData>> = ({
|
||||
},
|
||||
};
|
||||
const onSubmitForm = (params: IUserAttributes) => {
|
||||
if (data?.user.id)
|
||||
if (data?.user.id) {
|
||||
updateUser({
|
||||
id: data.user.id,
|
||||
params,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if (data?.user) reset({ roles: data?.user?.roles });
|
||||
if (data?.user) {
|
||||
reset({ roles: data?.user?.roles });
|
||||
}
|
||||
}, [reset, data?.user]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user