Merge pull request #8536 from umbraco/v8/bugfix/blockeditor_fixing_deleteAllBlocks
deleteAllBlocks fix
This commit is contained in:
@@ -281,9 +281,9 @@
|
||||
}
|
||||
|
||||
function deleteAllBlocks() {
|
||||
vm.layout.forEach(entry => {
|
||||
deleteBlock(entry.$block);
|
||||
});
|
||||
while(vm.layout.length) {
|
||||
deleteBlock(vm.layout[0].$block);
|
||||
};
|
||||
}
|
||||
|
||||
function activateBlock(blockObject) {
|
||||
|
||||
Reference in New Issue
Block a user