Skip to content

Commit

Permalink
Fix: Restrict export pattern action to user patterns (#63228)
Browse files Browse the repository at this point in the history
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
4 people authored Jul 8, 2024
1 parent 90a92cf commit f6133cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/dataviews/actions/export-pattern.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const exportPattern: Action< Pattern > = {
id: 'export-pattern',
label: __( 'Export as JSON' ),
supportsBulk: true,
isEligible: ( item ) => item.type === 'wp_block',
callback: async ( items ) => {
if ( items.length === 1 ) {
return downloadBlob(
Expand Down

0 comments on commit f6133cd

Please sign in to comment.