woocommerce/plugins/woocommerce-admin/client
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
..
activity-panel Rename Google Listings and Ads with Google for WooCommerce (#47614) 2024-07-22 18:59:43 +04:00
analytics [WooCommerce Analytics] Add Guest label when no customer name (#49594) 2024-07-17 21:12:11 +04:00
core-profiler Core profiler: set default for props to avoid crashes (#49519) 2024-07-23 10:45:58 +08:00
customize-store CYS: Add Tracking String to Fiverr CTA Link (#49745) 2024-07-22 11:33:44 -04:00
dashboard [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
embedded-body-layout Fix Layout Controller forwarding arrays from the URL query string. (#38593) 2023-06-05 04:55:20 -03:00
error-boundary Wrap activity panels in error boundary (#48415) 2024-06-17 13:05:11 +08:00
guided-tours Update @automattic/tour-kit to 1.1.3 and @automattic/components to 2.1.1 (#47129) 2024-05-09 08:56:08 +08:00
header Reduce redundant LYS option API Calls (#48303) 2024-06-11 13:28:05 +08:00
homescreen Store Alerts: Update widths to match main body (#48487) 2024-06-28 08:37:25 +12:00
hooks Add variation switcher in footer for variation page (#40713) 2023-10-12 11:56:48 -03:00
inbox-panel Add tests to tracks events fired through JS (#38124) 2023-05-10 09:36:42 -03:00
launch-your-store fix: LYS success page overflows (#49127) 2024-07-12 14:12:45 +08:00
layout [Store Alerts] Adjust inner styles (#49174) 2024-07-16 06:19:33 +00:00
lib Fix variation name in WC Analytics Variations report (#49440) 2024-07-15 16:55:06 +08:00
marketing Rename Google Listings and Ads with Google for WooCommerce (#47614) 2024-07-22 18:59:43 +04:00
marketplace [Store Alerts] Adjust inner styles (#49174) 2024-07-16 06:19:33 +00:00
mobile-banner Stylelint: Update config to double quotes (#45607) 2024-03-26 10:41:34 -03:00
navigation Remove onboarding welcome modals (#48346) 2024-06-13 10:39:21 +08:00
payments Revert "Upgrade the WooPayments surfaces to the new designs" (#46915) 2024-04-25 16:24:05 +03:00
payments-welcome Add new shared payment methods logos component (#49300) 2024-07-16 17:42:52 +03:00
products Address React 18 race condition issue and `setCategories` console error (#49642) 2024-07-22 09:22:35 -03:00
profile-wizard [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
settings Update Woo.com references to WooCommerce.com (#46259) 2024-04-09 09:50:15 +01:00
settings-recommendations [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
shipping Don't recommend WCS&T on shipping settings page if WCShip or WCTax is active (#48701) 2024-06-27 15:36:00 +02:00
store-management-links fix: fixed all instances of no-use-before-define lint rule violations 2023-11-16 19:21:30 +08:00
stylesheets Optimize text wrapping prevent orphans (#48131) 2024-06-06 09:42:06 +08:00
task-lists Fix add product task to create products according to selected types (#49631) 2024-07-18 15:27:25 +08:00
typings Place Printful behind a feature flag (#49104) 2024-07-03 17:01:37 +00:00
utils fix: lys hub show only incompleted and recent tasks (#46190) 2024-04-05 09:54:30 +08:00
wp-admin-scripts Add Woo product usage notice (#47697) 2024-07-17 16:38:08 +07:00
index.js Add global ErrorBoundary component for handling errors in react admin (#48250) 2024-06-11 16:14:44 +08:00
jest.config.js Fix Jest Preset (#42707) 2023-12-12 09:58:13 -08:00
tsconfig.test.json Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
xstate.js dev: disable xstate inspector in prod build (#46109) 2024-04-03 13:53:19 +08:00