Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

CategoryProductField touched.product type mismatch #104

Open
hough-commercetools opened this issue Apr 27, 2021 · 0 comments
Open

CategoryProductField touched.product type mismatch #104

hough-commercetools opened this issue Apr 27, 2021 · 0 comments

Comments

@hough-commercetools
Copy link
Contributor

When using the Dynamic Bundles Cart Preview functionality, a warning is thrown upon submission of the 'Preview Add To Cart'. Example: /sparkles-sunrise/dynamic-bundle-manager/48427fc9-5aaf-41bd-a0fe-791eeef9a04e/preview
Partial stacktrace:
Warning: Failed prop type: Invalid prop touched.product of type object supplied to CategoryProductField, expected boolean.
in CategoryProductField (at bundle-preview.js:476)
in Formik (at bundle-preview.js:455)
in div (created by Context.Consumer)
in EmotionCssPropInternal (created by Stack)
in Stack (at bundle-preview.js:396)

It appears that 'touched.product' of ProductTypeCategory is meant to be an object of 2 bools, but the Preview function is expecting a single bool.

image

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

2 participants