Skip to content

Commit

Permalink
Clean up code for testing (#87125)
Browse files Browse the repository at this point in the history
  • Loading branch information
miksansegundo authored Feb 5, 2024
1 parent 0fc6bec commit c63307c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { BlockRendererProvider, PatternsRendererProvider } from '@automattic/block-renderer';
import { isEnabled } from '@automattic/calypso-config';
import { getPlaceholderSiteID } from '@automattic/data-stores/src/site/constants';
import { useMemo } from 'react';
import StepperLoader from '../../components/stepper-loader';
Expand Down Expand Up @@ -47,10 +46,7 @@ const PatternAssemblerContainer = ( {
// such as the logo, title, tagline, pages, posts, etc.
// For the newly created site, we use the placeholder site to render the content.
// Otherwise, we use the current site to display the site-related blocks.
// For Horizon, forcing to use the content from Assembler demo site to help testing with any existing site.
siteId={
isNewSite || isEnabled( 'pattern-assembler/v2' ) ? getPlaceholderSiteID() : siteId
}
siteId={ isNewSite ? getPlaceholderSiteID() : siteId }
stylesheet={ stylesheet }
patternIdsByCategory={ patternIdsByCategory }
// Use siteInfo to overwrite site-related things such as title, and tagline.
Expand Down

0 comments on commit c63307c

Please sign in to comment.