mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 20:38:32 +00:00
fix: remove unused async
This commit is contained in:
parent
013f8c46b0
commit
93cd54104c
@ -72,7 +72,7 @@ export const ContextVarForm: FC<ComponentFormProps<IContextVar>> = ({
|
||||
required: t("message.label_is_required"),
|
||||
},
|
||||
};
|
||||
const onSubmitForm = async (params: IContextVarAttributes) => {
|
||||
const onSubmitForm = (params: IContextVarAttributes) => {
|
||||
if (data) {
|
||||
updateContextVar({ id: data.id, params });
|
||||
} else {
|
||||
|
@ -79,7 +79,7 @@ export const ProfileForm: FC<ProfileFormProps> = ({ user }) => {
|
||||
},
|
||||
},
|
||||
};
|
||||
const onSubmitForm = async ({
|
||||
const onSubmitForm = ({
|
||||
password,
|
||||
password2: _password2,
|
||||
...rest
|
||||
|
Loading…
Reference in New Issue
Block a user