We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be780bd commit 75a6e7cCopy full SHA for 75a6e7c
packages/edit-site/src/components/page-patterns/use-patterns.js
@@ -155,9 +155,13 @@ const selectPatterns = createSelector(
155
];
156
157
if ( syncStatus ) {
158
- patterns = patterns.filter(
159
- ( pattern ) => pattern.syncStatus === syncStatus
160
- );
+ // User patterns can have their sync statuses checked directly
+ // Non-user patterns are all unsynced for the time being.
+ patterns = patterns.filter( ( pattern ) => {
161
+ return pattern.id
162
+ ? pattern.syncStatus === syncStatus
163
+ : syncStatus === PATTERN_SYNC_TYPES.unsynced;
164
+ } );
165
}
166
167
if ( categoryId ) {
0 commit comments