fix: remove unused async

This commit is contained in:
hexastack 2025-02-19 15:33:23 +01:00
parent 013f8c46b0
commit 93cd54104c
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -79,7 +79,7 @@ export const ProfileForm: FC<ProfileFormProps> = ({ user }) => {
}, },
}, },
}; };
const onSubmitForm = async ({ const onSubmitForm = ({
password, password,
password2: _password2, password2: _password2,
...rest ...rest