@timardex/cluemart-shared 1.3.23 → 1.3.24

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.
@@ -3087,8 +3087,8 @@ var GET_POSTS = import_client59.gql`
3087
3087
  ${POST_FIELDS_FRAGMENT}
3088
3088
  `;
3089
3089
  var GET_POST = import_client59.gql`
3090
- query getPost($postId: ID!) {
3091
- post(postId: $postId) {
3090
+ query getPost($_id: ID!) {
3091
+ post(_id: $_id) {
3092
3092
  ...PostFields
3093
3093
  }
3094
3094
  }
@@ -3155,10 +3155,10 @@ var useGetPosts = () => {
3155
3155
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
3156
3156
  return { error, loading, posts: data?.posts || [], refetch };
3157
3157
  };
3158
- var useGetPost = (postId) => {
3158
+ var useGetPost = (_id) => {
3159
3159
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
3160
- skip: !postId,
3161
- variables: { postId }
3160
+ skip: !_id,
3161
+ variables: { _id }
3162
3162
  });
3163
3163
  return { error, loading, post: data?.post || null, refetch };
3164
3164
  };