Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Don't allow removing the block
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Oct 28, 2021
1 parent 019caae commit d68491e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/js/blocks/legacy-template/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ registerExperimentalBlockType( 'woocommerce/legacy-template', {
type: 'string',
default: 'any',
},
lock: {
type: 'object',
default: {
remove: true,
},
},
},
edit: Edit,
save: () => null,
Expand Down

0 comments on commit d68491e

Please sign in to comment.