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
Fix activeThemeHasMods undefined error #45255
Fix activeThemeHasMods undefined error #45255
Conversation
…-cys-core-cannot-read-properties-of-undefined-reading-activethemehasmods
Test Results SummaryCommit SHA: 4cf03ca
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
…efined-reading-activethemehasmods' of github.com:woocommerce/woocommerce into 45221-cys-core-cannot-read-properties-of-undefined-reading-activethemehasmods
Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
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.
Good job 🙇
Confirmed on both environments the error is not happening anymore 👌
…-cys-core-cannot-read-properties-of-undefined-reading-activethemehasmods
* Fix activeThemeHasMods undefined error * remove comment * fix naming * improve comment * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions <github-actions@github.com>
* Fix activeThemeHasMods undefined error * remove comment * fix naming * improve comment * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions <github-actions@github.com>
Submission Review Guidelines:
Changes proposed in this Pull Request:
This PR fixes the
activeThemeHasMods
undefined error. This issue happened because the iframe loads the entire CYS application (and all the state machines): this means that the iframe instance will have different state machines than the parent window.For this reason, it is necessary set the sendEvent function in the window object because it is necessary send the event to the main
Intro
state machine.Closes #45221.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
customize-store
./wp-admin/admin.php?page=wc-admin&path=/customize-store
.JN Installation
/wp-admin/tools.php?page=woocommerce-admin-test-helper
and enablecustomize-store
feature flag.Changelog entry
Significance
Type
Message
CYS - Fix activeThemeHasMods undefined error.
Comment