Skip to content

Commit

Permalink
WCMS-21569: Clear count to enable more accurate results for event rep…
Browse files Browse the repository at this point in the history
…orting (#233)
  • Loading branch information
brdunfield authored Jul 30, 2024
1 parent 2c65c5a commit 90c066c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/useDatastore/useDatastore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const useDatastore = (
const {data, isPending, error} = useQuery({
queryKey: ["datastore" + id + additionalParamsString],
queryFn: () => {
setCount(null)
return fetch(`${rootUrl}/datastore/query/${id}?${additionalParamsString}`)
.then(res => res.json())
},
Expand Down

0 comments on commit 90c066c

Please sign in to comment.