diff --git a/Libraries/Inspector/DevtoolsOverlay.js b/Libraries/Inspector/DevtoolsOverlay.js index 5f7e89a10ca0f5..4e7e4d5740fc2c 100644 --- a/Libraries/Inspector/DevtoolsOverlay.js +++ b/Libraries/Inspector/DevtoolsOverlay.js @@ -51,6 +51,9 @@ export default function DevtoolsOverlay({ clearTimeout(hideTimeoutId); // Shape of `node` is different in Fabric. const component = node.canonical ?? node; + if (!component) { + return; + } component.measure((x, y, width, height, left, top) => { setInspected({