Legacy Template Block: Remove the deletion lock (https://github.com/woocommerce/woocommerce-blocks/pull/5166) (https://github.com/woocommerce/woocommerce-blocks/pull/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/woocommerce-blocks#5163 Closes woocommerce/woocommerce-blocks#5109
This commit is contained in:
parent
2b7d906133
commit
ae4856b92b
|
@ -84,12 +84,6 @@ registerBlockType( 'woocommerce/legacy-template', {
|
|||
type: 'string',
|
||||
default: 'any',
|
||||
},
|
||||
lock: {
|
||||
type: 'object',
|
||||
default: {
|
||||
remove: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
edit: Edit,
|
||||
save: () => null,
|
||||
|
|
Loading…
Reference in New Issue