Skip to content

Commit

Permalink
Make sure deferred rendering is active for grid layout
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Apr 2, 2024
1 parent 314a6b8 commit d593443
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -419,7 +419,10 @@ export default function PageTemplatesTemplateParts( { postType } ) {
view={ view }
onChangeView={ onChangeView }
onSelectionChange={ onSelectionChange }
deferredRendering={ ! view.hiddenFields?.includes( 'preview' ) }
deferredRendering={
view.type === LAYOUT_GRID ||
! view.hiddenFields?.includes( 'preview' )
}
/>
</Page>
);
Expand Down

0 comments on commit d593443

Please sign in to comment.