Merge pull request #8536 from umbraco/v8/bugfix/blockeditor_fixing_deleteAllBlocks

deleteAllBlocks fix
This commit is contained in:
Warren Buckley
2020-08-04 14:57:26 +01:00
committed by GitHub

View File

@@ -281,9 +281,9 @@
} }
function deleteAllBlocks() { function deleteAllBlocks() {
vm.layout.forEach(entry => { while(vm.layout.length) {
deleteBlock(entry.$block); deleteBlock(vm.layout[0].$block);
}); };
} }
function activateBlock(blockObject) { function activateBlock(blockObject) {