Skip to content

Commit

Permalink
fix: skip graphql query if parameter is null
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca committed Nov 22, 2024
1 parent 73fea74 commit 9bea1cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Skip graphl query if parameter is null

## [1.6.5] - 2024-09-26
### Fixed
Expand Down
1 change: 1 addition & 0 deletions react/B2BQuotesLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const B2BQuotesLink: FunctionComponent<Props> = ({ render }) => {

const { data } = useQuery(CHECK_PERMISSIONS, {
variables: { email: userEmail },
skip: !userEmail,
})

useEffect(() => {
Expand Down

0 comments on commit 9bea1cc

Please sign in to comment.