mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +01:00
Added more cache checks.
This commit is contained in:
parent
ef9f8ed816
commit
83fb358355
9 changed files with 22 additions and 18 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import useApi from 'components/hooks/useApi';
|
||||
import useMessages from 'components/hooks/useMessages';
|
||||
import { Icon, Icons, LoadingButton, Text } from 'react-basics';
|
||||
import { setValue } from 'store/cache';
|
||||
|
||||
export function TeamMemberRemoveButton({ teamId, userId, disabled, onSave }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
|
@ -12,7 +13,8 @@ export function TeamMemberRemoveButton({ teamId, userId, disabled, onSave }) {
|
|||
{},
|
||||
{
|
||||
onSuccess: () => {
|
||||
onSave();
|
||||
setValue('team:members', Date.now());
|
||||
onSave?.();
|
||||
},
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue