mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
fix(users): fix to not get invite token unless the invite token modal is visible (#5380)
This commit is contained in:
parent
f0281f32ab
commit
e2a0fddcaa
@ -42,7 +42,7 @@ type Props = {
|
||||
|
||||
export default function ViewInviteTokenModal({ visible, onClose }: Props) {
|
||||
const baseUrl = window.location.origin;
|
||||
const { data: getNativeUserInviteTokenData } = useGetNativeUserInviteTokenQuery({});
|
||||
const { data: getNativeUserInviteTokenData } = useGetNativeUserInviteTokenQuery({ skip: !visible });
|
||||
|
||||
const [createNativeUserInviteToken, { data: createNativeUserInviteTokenData }] =
|
||||
useCreateNativeUserInviteTokenMutation({});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user