Skip to content

Commit

Permalink
Revert changes to init edited entity
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored and ntsekouras committed Jan 23, 2024
1 parent 576eba1 commit 79c204e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ function useResolveEditedEntityAndContext( { path, postId, postType } ) {
return {};
}, [ homepageId, postType, postId, path ] );

if (
( path === '/wp_template/all' ||
( path === '/wp_template' && window?.__experimentalAdminViews ) ) &&
postId
) {
if ( path === '/wp_template/all' && postId ) {
return { isReady: true, postType: 'wp_template', postId, context };
}

Expand Down

0 comments on commit 79c204e

Please sign in to comment.