mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Proper fix for #2137
This commit is contained in:
@@ -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) {
|
||||
|
||||
Vendored
+7
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user