Skip to content

Commit

Permalink
Merge pull request #191 from vtex-apps/fix/uisettings-validation
Browse files Browse the repository at this point in the history
Fix/uisettings validation
  • Loading branch information
ataideverton authored Dec 19, 2024
2 parents 46c58b8 + abd2d3c commit 7d1b4d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Fix `saveB2BSettings` mutation when `uiSettings` is absent

## [0.63.1] - 2024-12-10

### Added

- Added mail notification to `createOrganizationAndCostCenterWithAdminUser` mutation
Expand Down
8 changes: 5 additions & 3 deletions node/resolvers/Mutations/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ const Settings = {
transactionEmailSettings ??
currentB2BSettings?.transactionEmailSettings,
uiSettings: {
showModal: uiSettings.showModal,
clearCart: uiSettings.clearCart,
topBar: uiSettings.topBar ?? currentB2BSettings?.uiSettings?.topBar,
showModal:
uiSettings?.showModal ?? currentB2BSettings?.uiSettings.showModal,
clearCart:
uiSettings?.clearCart ?? currentB2BSettings?.uiSettings.clearCart,
topBar: uiSettings?.topBar ?? currentB2BSettings?.uiSettings?.topBar,
},
}

Expand Down

0 comments on commit 7d1b4d0

Please sign in to comment.