Skip to content

Commit 072811a

Browse files
authored
fix
1 parent 742dabb commit 072811a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ember_debug/libs/render-tree.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ class InElementSupportProvider {
4343

4444
const pushElement = NewElementBuilder.prototype.pushElement;
4545
NewElementBuilder.prototype.pushElement = function (...args) {
46-
const parent = this.env.debugRenderTree.stack.current;
46+
const parent = this.env?.debugRenderTree.stack.current;
4747
args[0].__emberInspectorParentNode =
48-
this.env.debugRenderTree.nodeFor(parent);
48+
this.env?.debugRenderTree.nodeFor(parent);
4949
return pushElement.call(this, ...args);
5050
};
5151

0 commit comments

Comments
 (0)