Skip to content

Commit

Permalink
Update packages/editor/src/dataviews/actions/export-pattern.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Ramon <[email protected]>
  • Loading branch information
ntsekouras and ramonjd authored Jul 8, 2024
1 parent ec222ca commit 879cdc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/dataviews/actions/export-pattern.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const exportPattern: Action< Pattern > = {
id: 'export-pattern',
label: __( 'Export as JSON' ),
supportsBulk: true,
isEligible: ( item ) => {
return item.type === 'wp_block';
},
isEligible: ( item ) => item.type === 'wp_block',
callback: async ( items ) => {
if ( items.length === 1 ) {
return downloadBlob(
Expand Down

0 comments on commit 879cdc5

Please sign in to comment.