mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] devtools: don't unfold env base object prototype
This commit prevents the base object prototype from being unfolded when the env of a component gets unfolded since it does not contain useful information.
This commit is contained in:
committed by
Géry Debongnie
parent
0048205636
commit
ff5ef82ea2
@@ -748,7 +748,7 @@
|
||||
child.contentType = "object";
|
||||
child.content = this.serializer.serializeItem(Object.getPrototypeOf(parentObj), true);
|
||||
child.hasChildren = true;
|
||||
if (!oldTree && type === "env") {
|
||||
if (!oldTree && type === "env" && Object.getPrototypeOf(parentObj) !== Object.prototype) {
|
||||
child.toggled = true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user