Update core profiler redirect to jetpack screen logic (#52095)
* Update core profiler redirect to jetpack screen logic * Add changelog * Only redirect when jetpack is selected
This commit is contained in:
parent
9e83d0cd6a
commit
c9ab2d67af
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: update
|
||||||
|
|
||||||
|
Update core profiler redirect to jetpack screen logic
|
|
@ -1338,16 +1338,7 @@ export const coreProfilerStateMachineDefinition = createMachine( {
|
||||||
} );
|
} );
|
||||||
return promiseDelay( 3000 );
|
return promiseDelay( 3000 );
|
||||||
} ),
|
} ),
|
||||||
onDone: [
|
onDone: [ { actions: [ 'redirectToWooHome' ] } ],
|
||||||
{
|
|
||||||
target: 'isJetpackConnected',
|
|
||||||
guard: or( [
|
|
||||||
'hasJetpackSelectedForInstallation',
|
|
||||||
'hasJetpackActivated',
|
|
||||||
] ),
|
|
||||||
},
|
|
||||||
{ actions: [ 'redirectToWooHome' ] },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
component: CoreProfilerLoader,
|
component: CoreProfilerLoader,
|
||||||
|
@ -1419,10 +1410,7 @@ export const coreProfilerStateMachineDefinition = createMachine( {
|
||||||
onDone: [
|
onDone: [
|
||||||
{
|
{
|
||||||
target: 'isJetpackConnected',
|
target: 'isJetpackConnected',
|
||||||
guard: or( [
|
guard: 'hasJetpackSelectedForInstallation',
|
||||||
'hasJetpackSelectedForInstallation',
|
|
||||||
'hasJetpackActivated',
|
|
||||||
] ),
|
|
||||||
},
|
},
|
||||||
{ actions: 'redirectToWooHome' },
|
{ actions: 'redirectToWooHome' },
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue