Skip to content

Commit fbc92a7

Browse files
authored
Merge pull request #649 from newfold-labs/bug/site-classification-fixes
save site classification in ai flow
2 parents 0f54445 + cb867b3 commit fbc92a7

File tree

1 file changed

+7
-0
lines changed
  • src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen

1 file changed

+7
-0
lines changed

src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ const SiteGen = () => {
210210
} );
211211
}
212212

213+
if ( identifier === 'site_classification' ) {
214+
currentData.data.siteType.primary.refers = 'slug';
215+
currentData.data.siteType.primary.value = data.body.primaryType;
216+
currentData.data.siteType.secondary.refers = 'slug';
217+
currentData.data.siteType.secondary.value = data.body.slug;
218+
}
219+
213220
// A Identifier request was successfully made with valid response
214221
currentData.sitegen.siteGenMetaStatus.currentStatus += 1;
215222

0 commit comments

Comments
 (0)