mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 03:55: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
|
|
@ -17,12 +17,12 @@ export function SegmentDeleteButton({
|
|||
onSave?: () => void;
|
||||
}) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { mutate, isPending, error, touch } = useDeleteQuery(
|
||||
const { mutateAsync, isPending, error, touch } = useDeleteQuery(
|
||||
`/websites/${websiteId}/segments/${segmentId}`,
|
||||
);
|
||||
|
||||
const handleConfirm = (close: () => void) => {
|
||||
mutate(null, {
|
||||
await mutateAsync(null, {
|
||||
onSuccess: () => {
|
||||
touch('segments');
|
||||
onSave?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue