From ff5ef82ea2d571a0c947fd803f53deb529234ce6 Mon Sep 17 00:00:00 2001 From: "Julien Carion (juca)" Date: Wed, 4 Oct 2023 13:19:18 +0200 Subject: [PATCH] [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. --- tools/devtools/src/page_scripts/owl_devtools_global_hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/devtools/src/page_scripts/owl_devtools_global_hook.js b/tools/devtools/src/page_scripts/owl_devtools_global_hook.js index e447a8d7e..aff5b9092 100644 --- a/tools/devtools/src/page_scripts/owl_devtools_global_hook.js +++ b/tools/devtools/src/page_scripts/owl_devtools_global_hook.js @@ -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;