Merge pull request #8536 from umbraco/v8/bugfix/blockeditor_fixing_deleteAllBlocks
deleteAllBlocks fix
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user