Skip to content

Commit

Permalink
Fix [customData] Extra validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanlopezluna committed May 31, 2024
1 parent 8948f38 commit 5ea4b7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed that if there is another custom application in the custom data, the "B2BQuotesLockingModal.tsx" component would break on its own.

## [1.6.0] - 2023-08-10

+ ### Added
Expand Down
2 changes: 1 addition & 1 deletion react/components/B2BQuotesLockingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const B2BQuotesLockingModal = () => {
const { orderForm } = orderFormData
const { customData, items } = orderForm

if (!customData?.customApps) {
if (!customData?.customApps || customData?.customApps.findIndex( (item: any) => item.id === 'b2b-quotes-graphql' ) === -1) {
return
}

Expand Down

0 comments on commit 5ea4b7b

Please sign in to comment.