mirror of
https://github.com/umami-software/umami.git
synced 2026-02-24 14:35:35 +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
|
|
@ -33,12 +33,10 @@ export function FunnelEditForm({
|
|||
}) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { data } = useReportQuery(id);
|
||||
const { mutate, error, isPending, touch } = useUpdateQuery(`/reports${id ? `/${id}` : ''}`);
|
||||
const { mutateAsync, error, isPending, touch } = useUpdateQuery(`/reports${id ? `/${id}` : ''}`);
|
||||
|
||||
const handleSubmit = async ({ name, ...parameters }) => {
|
||||
//
|
||||
|
||||
mutate(
|
||||
await mutateAsync(
|
||||
{ ...data, id, name, type: 'funnel', websiteId, parameters },
|
||||
{
|
||||
onSuccess: async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue