Skip to content

Commit

Permalink
exclude remotes from serialization (#2527)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Marcum <[email protected]>
  • Loading branch information
patricklx and mattmarcum authored Dec 14, 2023
1 parent 0388db0 commit 4a34730
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ember_debug/libs/render-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ class InElementSupportProvider {
registerRemote(block, node) {
const obj = this.buildInElementNode(node);
if (this.currentNode) {
this.currentNode.remotes = this.currentNode.remotes || [];
if (!this.currentNode.remotes) {
Object.defineProperty(this.currentNode, 'remotes', {
value: [],
});
}
this.currentNode.remotes.push(obj);
}
this.remoteRoots.push(obj);
Expand Down

0 comments on commit 4a34730

Please sign in to comment.