fix: pass all params to enabled of RQ if necessary

This commit is contained in:
Rıdvan Akca
2024-03-19 13:16:08 +03:00
parent f3d20ab769
commit 68160c20e8
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import { useQuery } from '@tanstack/react-query';
import api from 'helpers/api';
export default function useSamlAuthProvider({ samlAuthProviderId }) {
export default function useSamlAuthProvider({ samlAuthProviderId } = {}) {
const query = useQuery({
queryKey: ['samlAuthProvider', samlAuthProviderId],
queryFn: async ({ signal }) => {