diff --git a/packages/block-editor/src/components/inserter/media-tab/media-panel.js b/packages/block-editor/src/components/inserter/media-tab/media-panel.js index b2622a7f438d0..0874dea4a4ce2 100644 --- a/packages/block-editor/src/components/inserter/media-tab/media-panel.js +++ b/packages/block-editor/src/components/inserter/media-tab/media-panel.js @@ -14,6 +14,7 @@ import MediaList from './media-list'; import { useMediaResults, useDebouncedInput } from './hooks'; import InserterNoResults from '../no-results'; +const INITIAL_MEDIA_ITEMS_PER_PAGE = 10; const EMPTY_ARRAY = []; export function MediaCategoryDialog( { rootClientId, onInsert, category } ) { @@ -26,7 +27,7 @@ export function MediaCategoryDialog( { rootClientId, onInsert, category } ) { return () => clearTimeout( timeout ); }, [ category ] ); return ( -
+