Skip to content

Commit

Permalink
refactor(use has field value): add initial variables to create distin…
Browse files Browse the repository at this point in the history
…ct query key
  • Loading branch information
Mohammer5 committed Oct 30, 2023
1 parent 2a908ba commit acb4010
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/dataElements/form/useHasFieldValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface QueryResponse {
export function useHasFieldValue(field: string) {
const queryResult = useDataQuery<QueryResponse>(HAS_FIELD_VALUE_QUERY, {
lazy: true,
variables: { field, value: '' },
})

return useMemo(
Expand Down

0 comments on commit acb4010

Please sign in to comment.