Skip to content

Commit

Permalink
fix pages preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 18, 2024
1 parent b560b11 commit bbf96d1
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,6 @@ export function useResolveEditedEntity() {
return {};
}, [ homepageId, postType, postId ] );

if ( postType && ! postId ) {
return { isReady: false };
}

if ( postTypesWithoutParentTemplate.includes( postType ) && postId ) {
return { isReady: true, postType, postId, context };
}
Expand Down

0 comments on commit bbf96d1

Please sign in to comment.