Skip to content

Commit f4dc79c

Browse files
patricklxchancancode
authored andcommitted
fix recursion of getTagTrackedProps (#1144)
(cherry picked from commit edcce98)
1 parent da9c574 commit f4dc79c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ember_debug/object-inspector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ function getTagTrackedProps(tag, ownTag, level = 0) {
200200
}
201201
if (tag.subtag) {
202202
if (tag.subtag._propertyKey) props.push(tag.subtag._propertyKey);
203-
props.push(...getTagTrackedProps(tag.subtag, level + 1));
203+
props.push(...getTagTrackedProps(tag.subtag, ownTag, level + 1));
204204
}
205205
if (tag.subtags) {
206206
tag.subtags.forEach((t) => {
207207
if (t === ownTag) return;
208208
if (t._propertyKey) props.push(t._propertyKey);
209-
props.push(...getTagTrackedProps(t, level + 1));
209+
props.push(...getTagTrackedProps(t, ownTag, level + 1));
210210
});
211211
}
212212
return props;

0 commit comments

Comments
 (0)