[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:
Julien Carion (juca)
2023-10-04 13:19:18 +02:00
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;