diff --git a/desktop/plugins/public/layout/Inspector.tsx b/desktop/plugins/public/layout/Inspector.tsx index f88fa2ad7..44632e03e 100644 --- a/desktop/plugins/public/layout/Inspector.tsx +++ b/desktop/plugins/public/layout/Inspector.tsx @@ -312,11 +312,15 @@ export default class Inspector extends Component { ): Promise> { if (ids.length > 0 && this.props.client.isConnected) { const {forAccessibilityEvent} = options; - const {elements}: {elements: Array} = - await this.props.client.call(this.call().GET_NODES, { + const {elements}: {elements: Array} = await this.props.client + .call(this.call().GET_NODES, { ids, forAccessibilityEvent, selected: false, + }) + .catch((e) => { + console.error(`[Layout] Failed to fetch nodes from app:`, e); + return {elements: []}; }); if (!elements) { return []; diff --git a/desktop/plugins/public/layout/index.tsx b/desktop/plugins/public/layout/index.tsx index 03c416544..2c3cd848f 100644 --- a/desktop/plugins/public/layout/index.tsx +++ b/desktop/plugins/public/layout/index.tsx @@ -110,7 +110,12 @@ export default class LayoutPlugin extends FlipperPlugin< callClient, 'getNodes', supportsMethod, - ); + ).catch((e) => { + console.error( + `[Layout] Failed to fetch Nodes from app while creating export`, + e, + ); + }); } const AXelements: ElementMap = {}; if (rootAXElement) {