Skip to content

Commit

Permalink
Fix an undefined is not function error
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal]

This occurs sometimes on AR, because `measure` doesn't exist on `Suspense`.

Reviewed By: lunaruan

Differential Revision: D40531850

fbshipit-source-id: 4013d660e5e47a28b27d5b6df57bcb7ce88a4ea8
  • Loading branch information
tyao1 authored and facebook-github-bot committed Oct 20, 2022
1 parent 8e8e18b commit ea15c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Inspector/DevtoolsOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function DevtoolsOverlay({
clearTimeout(hideTimeoutId);
// Shape of `node` is different in Fabric.
const component = node.canonical ?? node;
if (!component) {
if (!component || !component.measure) {
return;
}

Expand Down

0 comments on commit ea15c3c

Please sign in to comment.