Use an empty queue if CES feature is not enabled (https://github.com/woocommerce/woocommerce-admin/pull/5800)
* Include CES component only if the feature flag is enabled
This commit is contained in:
parent
91bf42d7f4
commit
27a3884a94
|
@ -83,12 +83,19 @@ if ( navigationRoot ) {
|
|||
render( <Navigation />, navigationRoot );
|
||||
}
|
||||
|
||||
// Set up customer effort score survey.
|
||||
( function () {
|
||||
const root = appRoot || embeddedRoot;
|
||||
// Render the CustomerEffortScoreTracksContainer only if
|
||||
// the feature flag is enabled.
|
||||
if (
|
||||
window.wcAdminFeatures &&
|
||||
window.wcAdminFeatures[ 'customer-effort-score-tracks' ] === true
|
||||
) {
|
||||
// Set up customer effort score survey.
|
||||
( function () {
|
||||
const root = appRoot || embeddedRoot;
|
||||
|
||||
render(
|
||||
<CustomerEffortScoreTracksContainer />,
|
||||
root.insertBefore( document.createElement( 'div' ), null )
|
||||
);
|
||||
} )();
|
||||
render(
|
||||
<CustomerEffortScoreTracksContainer />,
|
||||
root.insertBefore( document.createElement( 'div' ), null )
|
||||
);
|
||||
} )();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue