Update oauth2-tokens.tsx

This commit is contained in:
rustmailer
2025-11-14 23:30:02 +08:00
parent 3e63223c81
commit 973fe406f1
@@ -40,6 +40,7 @@ export function OAuth2TokensDialog({ currentRow, open, onOpenChange }: Props) {
const { data: oauth2Tokens, isLoading } = useQuery({
queryKey: ['oauth2-tokens', currentRow.id],
queryFn: () => get_oauth2_tokens(currentRow.id),
enabled: open && !!currentRow.id,
retry: 0,
refetchOnWindowFocus: false,
refetchOnMount: false,