Skip to content

Commit

Permalink
fix recursion of getTagTrackedProps (emberjs#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Sep 19, 2022
1 parent a8f1764 commit 975dc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ember_debug/object-inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ function getTagTrackedProps(tag, ownTag, level = 0) {
}
if (tag.subtag) {
if (tag.subtag._propertyKey) props.push(tag.subtag._propertyKey);
props.push(...getTagTrackedProps(tag.subtag, level + 1));
props.push(...getTagTrackedProps(tag.subtag, ownTag, level + 1));
}
if (tag.subtags) {
tag.subtags.forEach((t) => {
if (t === ownTag) return;
if (t._propertyKey) props.push(t._propertyKey);
props.push(...getTagTrackedProps(t, level + 1));
props.push(...getTagTrackedProps(t, ownTag, level + 1));
});
}
return props;
Expand Down

0 comments on commit 975dc62

Please sign in to comment.