Skip to content

Commit

Permalink
[FIX] devtools: don't unfold env base object prototype
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juliusc2066 authored and ged-odoo committed Oct 4, 2023
1 parent 0048205 commit ff5ef82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff5ef82

Please sign in to comment.