woocommerce/plugins
Elio Rivero 1c23c5f2b4
Core profiler: set default for props to avoid crashes (#49519)
* fix(core-profiler): set default for props to avoid crashes. Fixes #49512

This fix solves an issue where if some of the onboarding profile properties from the context are undefined, it will prevent the user from proceeding with the core profiler. 

Related issue #49512 has a description of the issue.

* Add changefile(s) from automation for the following project(s): woocommerce

* feat(core-profiler): improve onboarding profile assignment logic

This commit improves the logic for assigning the onboarding profile in the core profiler. It now checks if the output of the event is an object before assigning it to the context. If the output is not an object, it keeps the existing context. This prevents crashes and allows the user to proceed with the core profiler.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-07-23 10:45:58 +08:00
..
woo-ai Monorepo: zips build script update (frozen lock files) (#49640) 2024-07-19 13:07:48 +02:00
woocommerce Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
woocommerce-admin Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
woocommerce-beta-tester Monorepo: zips build script update (frozen lock files) (#49640) 2024-07-19 13:07:48 +02:00
woocommerce-blocks Adjust input field height and input label text size (#49636) 2024-07-22 12:53:59 +02:00