woocommerce/plugins/woocommerce-admin/client/core-profiler
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
..
actions Handle core profiler get countries error (#48317) 2024-06-13 12:42:30 +08:00
assets/images Update SVG files so they are all the same size 2023-08-24 13:57:50 -10:00
components [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
pages Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
services dev: core profiler xstate v5 migration (#48135) 2024-06-07 15:06:40 +08:00
stories Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
utils dev: refactor core profiler loader (#39735) 2023-08-22 19:58:33 +10:00
events.tsx Handle core profiler get countries error (#48317) 2024-06-13 12:42:30 +08:00
index.tsx Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
shared.scss Stylelint: Update config to double quotes (#45607) 2024-03-26 10:41:34 -03:00
style.scss Handle core profiler get countries error (#48317) 2024-06-13 12:42:30 +08:00
types.tsx add: customize your store xstate scaffolding (#39619) 2023-08-18 13:30:25 +08:00