mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fixed async issues.
This commit is contained in:
parent
f639bb07f4
commit
b115131f4c
3 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ export function TeamMemberRemoveButton({
|
|||
const { mutateAsync, isPending, error } = useDeleteQuery(`/teams/${teamId}/users/${userId}`);
|
||||
const { touch } = useModified();
|
||||
|
||||
const handleConfirm = (close: () => void) => {
|
||||
const handleConfirm = async (close: () => void) => {
|
||||
await mutateAsync(null, {
|
||||
onSuccess: () => {
|
||||
touch('teams:members');
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function CohortDeleteButton({
|
|||
`/websites/${websiteId}/segments/${cohortId}`,
|
||||
);
|
||||
|
||||
const handleConfirm = (close: () => void) => {
|
||||
const handleConfirm = async (close: () => void) => {
|
||||
await mutateAsync(null, {
|
||||
onSuccess: () => {
|
||||
touch('cohorts');
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function SegmentDeleteButton({
|
|||
`/websites/${websiteId}/segments/${segmentId}`,
|
||||
);
|
||||
|
||||
const handleConfirm = (close: () => void) => {
|
||||
const handleConfirm = async (close: () => void) => {
|
||||
await mutateAsync(null, {
|
||||
onSuccess: () => {
|
||||
touch('segments');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue