Skip to content

Commit

Permalink
[PowerPages] Add input validation to site creation process to prevent…
Browse files Browse the repository at this point in the history
… errors
  • Loading branch information
amitjoshi committed Jan 2, 2025
1 parent 7cb62de commit 0952760
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ export function registerButtonCommands() {

const siteCreateInputs = await collectSiteCreationInputs(siteName, envList);

if (!siteCreateInputs) {
return;
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const siteManager = await populateSiteRecords(siteName, sitePagesList, updatedPages, siteCreateInputs.OrgUrl, telemetry);

Expand Down

0 comments on commit 0952760

Please sign in to comment.