mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
Convert all mutate to mutateAsync.
This commit is contained in:
parent
980e4e6b41
commit
6faf16e9aa
32 changed files with 78 additions and 97 deletions
|
|
@ -10,10 +10,10 @@ import { useMessages, useUpdateQuery } from '@/components/hooks';
|
|||
|
||||
export function PasswordEditForm({ onSave, onClose }) {
|
||||
const { formatMessage, labels, messages, getErrorMessage } = useMessages();
|
||||
const { mutate, error, isPending } = useUpdateQuery('/me/password');
|
||||
const { mutateAsync, error, isPending } = useUpdateQuery('/me/password');
|
||||
|
||||
const handleSubmit = async (data: any) => {
|
||||
mutate(data, {
|
||||
await mutateAsync(data, {
|
||||
onSuccess: async () => {
|
||||
onSave();
|
||||
onClose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue