Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Vue warning on product details because of duplicated property #3428

Merged

Conversation

cewald
Copy link
Contributor

@cewald cewald commented Aug 26, 2019

Related issues

There is a warning in product details page because of a duplicate product property which is been defined by core/modules/compare/components/AddToCompare.ts mixin and in the products page core/pages/Product.js:

[Vue warn]: The computed property "product" is already defined as a prop.
[Vue warn]: Missing required prop: "product"

Short description and why it's useful

Just a small bugfix. I fixed it by removing the properties from the AddToCompare mixin and added it directly to the core/blocks/Compare/AddToCompare.vue component. I didn't put it in an extra mixin file because as I can see it's the only usage of this property in a component so far.

Which environment this relates to

develop:latest 09d9f8a

  • Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
  • RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
  • Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility and no breaking changes)
  • I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change

Contribution and currently important rules acceptance

Copy link
Collaborator

@pkarw pkarw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pkarw pkarw requested review from patzick and filrak August 29, 2019 10:11
@patzick
Copy link
Collaborator

patzick commented Aug 30, 2019

@cewald please just resolve conflicts to safely merge that in

@patzick patzick added this to the 1.11.0-rc.1 milestone Aug 30, 2019
@patzick patzick added the not ready for merge PR is holded. Needs some clarifications or things that need to be finished. label Aug 30, 2019
@cewald
Copy link
Contributor Author

cewald commented Sep 1, 2019

@patzick The conflicts are merged.

@patzick patzick removed the not ready for merge PR is holded. Needs some clarifications or things that need to be finished. label Sep 2, 2019
@patzick patzick merged commit 9dfc06c into vuestorefront:develop Sep 2, 2019
@cewald cewald deleted the bugfix/product-add-to-compare-mixin branch September 2, 2019 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants