Skip to content

Commit

Permalink
Site Logo: Use getMedia shorthand (#33992)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Aug 11, 2021
1 parent 5a610d4 commit a439811
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,12 @@ export default function LogoEdit( {
const _siteLogoId = _siteLogo || _readOnlyLogo;
const mediaItem =
_siteLogoId &&
select( coreStore ).getEntityRecord( 'root', 'media', _siteLogoId, {
select( coreStore ).getMedia( _siteLogoId, {
context: 'view',
} );
const _isRequestingMediaItem =
_siteLogoId &&
! select( coreStore ).hasFinishedResolution( 'getEntityRecord', [
'root',
'media',
! select( coreStore ).hasFinishedResolution( 'getMedia', [
_siteLogoId,
{ context: 'view' },
] );
Expand Down

0 comments on commit a439811

Please sign in to comment.