Skip to content

Commit 40fe9a3

Browse files
authored
fix: skip graphql query if parameter is null (#65)
1 parent ea8c33b commit 40fe9a3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Fixed
10+
- Skip graphl query if parameter is null
911

1012
## [3.0.2] - 2025-10-16
1113

react/B2BQuotesLink.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const B2BQuotesLink: FunctionComponent<Props> = ({ render }) => {
2121

2222
const { data } = useQuery(CHECK_PERMISSIONS, {
2323
variables: { email: userEmail },
24+
skip: !userEmail,
2425
})
2526

2627
useEffect(() => {

0 commit comments

Comments
 (0)