mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +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"),
|
required: t("message.label_is_required"),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const onSubmitForm = async (params: IContextVarAttributes) => {
|
const onSubmitForm = (params: IContextVarAttributes) => {
|
||||||
if (data) {
|
if (data) {
|
||||||
updateContextVar({ id: data.id, params });
|
updateContextVar({ id: data.id, params });
|
||||||
} else {
|
} else {
|
||||||
|
@ -79,7 +79,7 @@ export const ProfileForm: FC<ProfileFormProps> = ({ user }) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const onSubmitForm = async ({
|
const onSubmitForm = ({
|
||||||
password,
|
password,
|
||||||
password2: _password2,
|
password2: _password2,
|
||||||
...rest
|
...rest
|
||||||
|
Loading…
Reference in New Issue
Block a user