diff --git a/desktop/plugins/public/layout/Inspector.tsx b/desktop/plugins/public/layout/Inspector.tsx index 1baf08171..f88fa2ad7 100644 --- a/desktop/plugins/public/layout/Inspector.tsx +++ b/desktop/plugins/public/layout/Inspector.tsx @@ -318,6 +318,9 @@ export default class Inspector extends Component { forAccessibilityEvent, selected: false, }); + if (!elements) { + return []; + } elements.forEach((e) => this.updateElement(e.id, e)); return elements; } else {