Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit d73b177

Browse files
committed
Guard isRoot on value truthiness
1 parent cf6a7f8 commit d73b177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools-reps/src/object-inspector/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class ObjectInspector extends Component {
177177
if (expand === true) {
178178
const gripItem = getClosestGripNode(item);
179179
const value = getValue(gripItem);
180-
const isRoot = roots.some(root => {
180+
const isRoot = value && roots.some(root => {
181181
const rootValue = getValue(root);
182182
return rootValue && rootValue.actor === value.actor;
183183
});

0 commit comments

Comments
 (0)