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

Commit

Permalink
Legacy Template Block: Remove the deletion lock (#5166) (#5176)
Browse files Browse the repository at this point in the history
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 #5163
Closes #5109
  • Loading branch information
sunyatasattva authored Nov 17, 2021
1 parent c47f461 commit ea85bf0
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 ea85bf0

Please sign in to comment.