Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Mar 6, 2024
1 parent 3591087 commit bd7b53d
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,12 @@ const SiteGen = () => {
setCurrentOnboardingData( currentData );

// Get the homepages and set that in flow
const response = await getHomepages(
currentData.sitegen.siteDetails.prompt
getHomepages( currentData.sitegen.siteDetails.prompt ).then(
( response ) => {
currentData.sitegen.siteGenMetaStatus.currentStatus += 1;
currentData.sitegen.homepages.data = response.body;
}
);

if ( response.body ) {
currentData.sitegen.homepages.data = response.body;
}
currentData.sitegen.siteGenMetaStatus.currentStatus += 1;
}
// Sync the current request changed to State
setCurrentOnboardingData( currentData );
Expand Down

0 comments on commit bd7b53d

Please sign in to comment.