Skip to content

Commit

Permalink
Legacy Template Block: Remove the deletion lock (woocommerce#5166) (w…
Browse files Browse the repository at this point in the history
…oocommerce#5176)

Previously, our legacy template block was locked to prevent the users from
removing it. The block could however be removed by erasing the parent, so
this change allows the user to directly remove the block itself.

Also:
Closes woocommerce#5163
Closes woocommerce#5109
  • Loading branch information
sunyatasattva authored and jonny-bull committed Dec 14, 2021
1 parent 3518abc commit 378f129
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions assets/js/blocks/legacy-template/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ registerBlockType( 'woocommerce/legacy-template', {
type: 'string',
default: 'any',
},
lock: {
type: 'object',
default: {
remove: true,
},
},
},
edit: Edit,
save: () => null,
Expand Down

0 comments on commit 378f129

Please sign in to comment.