diff --git a/packages/edit-site/src/components/page-patterns/patterns-list.js b/packages/edit-site/src/components/page-patterns/patterns-list.js index 406999bee09c35..2744359bf0628b 100644 --- a/packages/edit-site/src/components/page-patterns/patterns-list.js +++ b/packages/edit-site/src/components/page-patterns/patterns-list.js @@ -27,7 +27,7 @@ import usePatterns from './use-patterns'; import SidebarButton from '../sidebar-button'; import useDebouncedInput from '../../utils/use-debounced-input'; import { unlock } from '../../lock-unlock'; -import { SYNC_TYPES, USER_PATTERN_CATEGORY } from './utils'; +import { SYNC_TYPES, USER_PATTERN_CATEGORY, PATTERNS } from './utils'; import Pagination from './pagination'; const { useLocation, useHistory } = unlock( routerPrivateApis ); @@ -63,9 +63,12 @@ export default function PatternsList( { categoryId, type } ) { const deferredSyncedFilter = useDeferredValue( syncFilter ); + const isUncategorizedThemePatterns = + type === PATTERNS && categoryId === 'uncategorized'; + const { patterns, isResolving } = usePatterns( type, - categoryId !== 'uncategorized' ? categoryId : '', + isUncategorizedThemePatterns ? '' : categoryId, { search: deferredFilterValue, syncStatus: