fix(media-library): stop loading non-image previews (#1947)
This commit is contained in:
parent
c3adebea06
commit
67585e84ae
@ -46,7 +46,7 @@ const MediaLibraryCardGrid = ({
|
||||
width={cardWidth}
|
||||
margin={cardMargin}
|
||||
isPrivate={isPrivate}
|
||||
displayURL={getDisplayURL(file)}
|
||||
displayURL={file.isViewableImage && getDisplayURL(file)}
|
||||
/>
|
||||
))}
|
||||
{!canLoadMore ? null : <Waypoint onEnter={onLoadMore} />}
|
||||
|
Loading…
x
Reference in New Issue
Block a user