Skip to content

Commit

Permalink
Merge pull request #537 from newfold-labs/hotfix/Old-DIY-loader-showi…
Browse files Browse the repository at this point in the history
…ng-new-Sitegen-AI-bug

Fix DIY theme change modal showing up in Sitegen Flow
  • Loading branch information
arunshenoy99 authored Apr 9, 2024
2 parents 7e95ecd + 4d429d0 commit 8f3fb29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/OnboardingSPA/components/StateHandlers/Design/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ const DesignStateHandler = ( {
window.location.reload();
}
break;
case THEME_STATUS_NOT_ACTIVE:
if ( false === render ) {
// When render is false add this condition because
// handleRender() func does not run here and theme is not activated.
expediteInstall();
}
break;
default:
updateThemeStatus( themeStatus );
}
Expand Down
2 changes: 1 addition & 1 deletion src/OnboardingSPA/steps/SiteGen/Preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ const SiteGenPreview = () => {
const content = getContents();

return (
<DesignStateHandler>
<DesignStateHandler render={ false }>
<SiteGenStateHandler>
<CommonLayout className="nfd-onboarding-step--site-gen__preview">
<div className="nfd-onboarding-step--site-gen__preview__container">
Expand Down

0 comments on commit 8f3fb29

Please sign in to comment.