Skip to content

Commit

Permalink
Merge pull request #59 from ivanlopezluna/fix/customdata
Browse files Browse the repository at this point in the history
Fix [customData] Extra validation
  • Loading branch information
pabloppupulin authored Jun 20, 2024
2 parents 8577f73 + 47411a0 commit 354d7ec
Show file tree
Hide file tree
Showing 2 changed files with 10 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
7 changes: 6 additions & 1 deletion react/components/B2BQuotesLockingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ const B2BQuotesLockingModal = () => {
const { orderForm } = orderFormData
const { customData, items } = orderForm

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

Check warning on line 106 in react/components/B2BQuotesLockingModal.tsx

View workflow job for this annotation

GitHub Actions / QE / Lint Node.js

Unexpected any. Specify a different type
)
) {
return
}

Expand Down

0 comments on commit 354d7ec

Please sign in to comment.