Skip to content

Commit 60738b9

Browse files
committed
Reset site state when moving to the overview screen
1 parent ad95eb7 commit 60738b9

File tree

1 file changed

+2
-0
lines changed
  • client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials

1 file changed

+2
-0
lines changed

client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-credentials/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ const SiteMigrationCredentials: Step< {
115115
from_url: fromUrl,
116116
blog_url: siteSlug,
117117
} );
118+
// Reset the site in the state to ensure the correct overview screen is shown.
119+
siteId && dispatch( resetSite( siteId ) );
118120

119121
return navigation.submit?.( {
120122
action: 'skip',

0 commit comments

Comments
 (0)