@timardex/cluemart-shared 1.5.620 → 1.5.621

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1845,7 +1845,7 @@ declare const useDeleteRelation: () => {
1845
1845
  loading: boolean;
1846
1846
  };
1847
1847
 
1848
- declare const useGetRelation: (_id: string) => {
1848
+ declare const useGetRelation: (_id?: string) => {
1849
1849
  error: _apollo_client.ApolloError | undefined;
1850
1850
  loading: boolean;
1851
1851
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.d.ts CHANGED
@@ -1845,7 +1845,7 @@ declare const useDeleteRelation: () => {
1845
1845
  loading: boolean;
1846
1846
  };
1847
1847
 
1848
- declare const useGetRelation: (_id: string) => {
1848
+ declare const useGetRelation: (_id?: string) => {
1849
1849
  error: _apollo_client.ApolloError | undefined;
1850
1850
  loading: boolean;
1851
1851
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
package/dist/index.mjs CHANGED
@@ -4582,8 +4582,8 @@ import { useQuery as useQuery4 } from "@apollo/client";
4582
4582
  var useGetRelation = (_id) => {
4583
4583
  const { loading, error, data, refetch } = useQuery4(GET_RELATION, {
4584
4584
  fetchPolicy: "network-only",
4585
- skip: !_id || _id === "",
4586
- variables: { _id }
4585
+ skip: !_id,
4586
+ variables: _id ? { _id } : void 0
4587
4587
  });
4588
4588
  const relation = data?.relation;
4589
4589
  return { error, loading, refetch, relation };