mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
make zustand teams:members consistent, fix team delete
This commit is contained in:
parent
87a18dc570
commit
ba081565fc
4 changed files with 5 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ export function TeamLeaveForm({
|
|||
const handleConfirm = async () => {
|
||||
mutate(null, {
|
||||
onSuccess: async () => {
|
||||
touch('team:members');
|
||||
touch('teams:members');
|
||||
onSave();
|
||||
onClose();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export function TeamMemberRemoveButton({
|
|||
const handleRemoveTeamMember = () => {
|
||||
mutate(null, {
|
||||
onSuccess: () => {
|
||||
touch('team:members');
|
||||
touch('teams:members');
|
||||
onSave?.();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export function TeamDeleteForm({
|
|||
const { labels, formatMessage } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, error, isPending } = useMutation({
|
||||
mutationFn: (data: any) => del(`/teams/${teamId}`, data),
|
||||
mutationFn: () => del(`/teams/${teamId}`),
|
||||
});
|
||||
|
||||
const handleConfirm = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue