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

[UX] Uncaught TypeError: response.errors is undefined #923

Open
umpirsky opened this issue Jun 15, 2023 · 0 comments
Open

[UX] Uncaught TypeError: response.errors is undefined #923

umpirsky opened this issue Jun 15, 2023 · 0 comments

Comments

@umpirsky
Copy link

It happens when POST /en_US/ajax/cart/add?productId=2 responds with 500 in sylius/sylius/src/Sylius/Bundle/ShopBundle/Resources/private/js/sylius-add-to-cart.js#39 Object.entries(response.errors.errors).forEach(([, message]).

The UI only renders this empty red label:

Screenshot from 2023-06-15 15-50-00

It should show some generic error message instead and prevent JS error.

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

No branches or pull requests

1 participant