-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Checkout - Fix JS error Cannot read property 'quoteData' of undefined #18503
Checkout - Fix JS error Cannot read property 'quoteData' of undefined #18503
Conversation
@ihor-sviziev Thanks for your PR. I couldn't reproduce the issue. Please, could you send more details. |
Hi @rodrigowebjump, |
Hi @rodrigowebjump @mpchadwick @VladimirZaets , |
@ihor-sviziev this PR was not intentionally closed. We had referenced in in a PR to a private repo which I merged (we're experiencing the same issue on a client site). That seems to have closed this PR unintentionally. Seems like a GitHub bug, but sorry about it. And yes, I agree with you, this issue is critical. |
Hi @sivaschenko, thank you for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution.
Hi @rodrigowebjump, thank you for the review. |
Hi @ihor-sviziev, thank you for your contribution! |
Is there any reason why this fix still is only present in 2.3-develop and not in 2.3.1? |
Hi @t-eichmann, |
Description
Sometimes after going to checkout page we have infinite loading indicator that caused by JS error
Cannot read property 'quoteData' of undefined.
This issue happened because quote.js file using window.checkoutConfig, that inserted directly into page, but sometimes quote.js component initialization executes first.
magento2/app/code/Magento/Checkout/view/frontend/web/js/model/quote.js
Lines 32 to 36 in f6ca94c
This change adding waiting when dome ready and
window.checkoutConfig
is already availableFixed Issues (if relevant)
N/A
Related issues
Manual testing scenarios
Note: This issue reproducing quote small amount of times
Contribution checklist