Proper fix for #2137

This commit is contained in:
Djamil Legato
2017-10-09 18:54:08 -07:00
parent 481812da4d
commit 0518e5eabe
2 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -592,7 +592,13 @@ ready(function() {
layoutmanager.clear(particle.block, { save: false, dropLastGrid: !!response.body.data.children.length, emptyInherits: true });
builder.recursiveLoad(response.body.data.children, builder.insert, 0, particle.getId());
} else {
layoutmanager.clear(particle.block, { save: false, dropLastGrid: false, emptyInherits: true });
if (response.body.data.type === 'section') {
layoutmanager.clear(particle.block, {
save: false,
dropLastGrid: false,
emptyInherits: true
});
}
}
if (particle.hasInheritance() && !response.body.data.inherit) {
+7 -1
View File
@@ -3438,7 +3438,13 @@ ready(function() {
layoutmanager.clear(particle.block, { save: false, dropLastGrid: !!response.body.data.children.length, emptyInherits: true });
builder.recursiveLoad(response.body.data.children, builder.insert, 0, particle.getId());
} else {
layoutmanager.clear(particle.block, { save: false, dropLastGrid: false, emptyInherits: true });
if (response.body.data.type === 'section') {
layoutmanager.clear(particle.block, {
save: false,
dropLastGrid: false,
emptyInherits: true
});
}
}
if (particle.hasInheritance() && !response.body.data.inherit) {