From c456974bc7034661b3b3577747af14529dae2c33 Mon Sep 17 00:00:00 2001 From: "lokapure.girish" Date: Fri, 16 Feb 2024 10:43:09 +0530 Subject: [PATCH 1/2] delete homepage data when prompt changes --- src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js index 658b33850..3d032bec7 100644 --- a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js @@ -58,6 +58,7 @@ const SiteGenSiteDetails = () => { currentData.sitegen.siteDetails.mode = 'simple'; currentData.sitegen.skipCache = true; currentData.sitegen.sitemapPagesGenerated = false; + currentData.sitegen.homepages.data = []; setCurrentOnboardingData( currentData ); } setIsFooterNavAllowed( isValidInput ); From 934ac64e528440bc673e3b17108a9b8cf5463601 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 21 Feb 2024 19:21:39 +0530 Subject: [PATCH 2/2] Update index.js --- src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js index 3d032bec7..3c0d39add 100644 --- a/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js +++ b/src/OnboardingSPA/steps/SiteGen/SiteDetails/index.js @@ -58,7 +58,8 @@ const SiteGenSiteDetails = () => { currentData.sitegen.siteDetails.mode = 'simple'; currentData.sitegen.skipCache = true; currentData.sitegen.sitemapPagesGenerated = false; - currentData.sitegen.homepages.data = []; + currentData.sitegen.homepages.active = {}; + currentData.sitegen.homepages.data = {}; setCurrentOnboardingData( currentData ); } setIsFooterNavAllowed( isValidInput );