Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed problem with not showing error message when placing an order fails - @qiqqq
- Invoking afterCacheInvalidated server hook in a proper moment - @Fifciu (#4176)
- Fixed `cart/isVirtualCart` to return `false` when cart is empty - @haelbichalex(#4182)
- Use `setProductGallery` in `product/setCurrent` to use logic of the action - @cewald (#4153)

### Changed / Improved

Expand Down
2 changes: 1 addition & 1 deletion core/modules/catalog/store/product/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ const actions: ActionTree<ProductState, RootState> = {
const productUpdated = Object.assign({}, originalProduct, productVariant)
populateProductConfigurationAsync(context, { product: productUpdated, selectedVariant: productVariant })
if (!config.products.gallery.mergeConfigurableChildren) {
context.commit(types.PRODUCT_SET_GALLERY, attributeImages(productVariant))
context.dispatch('setProductGallery', { product: productUpdated })
}
context.commit(types.PRODUCT_SET_CURRENT, Object.assign({}, productUpdated))
return productUpdated
Expand Down