diff --git a/package-lock.json b/package-lock.json index 37e0d25e8..95ae2d753 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18139,4 +18139,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js index 1b28cdd1c..553c98510 100644 --- a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js +++ b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js @@ -45,18 +45,25 @@ const SiteGen = () => { }, [ newfoldBrand ] ); const location = useLocation(); - const { currentData, initialize, pluginInstallHash, siteGenErrorStatus } = - useSelect( ( select ) => { - return { - currentData: - select( nfdOnboardingStore ).getCurrentOnboardingData(), - initialize: select( nfdOnboardingStore ).getInitialize(), - pluginInstallHash: - select( nfdOnboardingStore ).getPluginInstallHash(), - siteGenErrorStatus: - select( nfdOnboardingStore ).getSiteGenErrorStatus(), - }; - } ); + const { + currentData, + initialize, + pluginInstallHash, + siteGenErrorStatus, + interactionDisabled, + } = useSelect( ( select ) => { + return { + currentData: + select( nfdOnboardingStore ).getCurrentOnboardingData(), + initialize: select( nfdOnboardingStore ).getInitialize(), + pluginInstallHash: + select( nfdOnboardingStore ).getPluginInstallHash(), + siteGenErrorStatus: + select( nfdOnboardingStore ).getSiteGenErrorStatus(), + interactionDisabled: + select( nfdOnboardingStore ).getInteractionDisabled(), + }; + } ); const { setCurrentOnboardingData, updateSiteGenErrorStatus } = useDispatch( nfdOnboardingStore ); @@ -181,7 +188,10 @@ const SiteGen = () => { }, [ location.pathname ] ); useEffect( () => { - if ( prevSiteGenErrorStatus.current === true && siteGenErrorStatus === false ) { + if ( + prevSiteGenErrorStatus.current === true && + siteGenErrorStatus === false + ) { generateSiteGenData(); syncStoreToDB(); } @@ -205,6 +215,7 @@ const SiteGen = () => { content={ } sidebar={ } footer={