Skip to content

Commit

Permalink
Improve performance for large post significantly
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 21, 2021
1 parent 4060caa commit 4d3e504
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/core-data/src/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,7 @@ export function __experimentalGetTemplateForLink( state, link ) {

const template = records?.length ? records[ 0 ] : null;
if ( template ) {
return getEditedEntityRecord(
state,
'postType',
'wp_template',
template.id
);
return getEntityRecord( state, 'postType', 'wp_template', template.id );
}
return template;
}

0 comments on commit 4d3e504

Please sign in to comment.