From 43495fa64cef4854d813549fa09707294d83eb93 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Thu, 27 Jun 2019 06:53:11 -0700 Subject: [PATCH] Do no fetch meta data for the archived device Summary: Do not fetch meta data when the selected device is the archived one, Reviewed By: jknoxville Differential Revision: D16011742 fbshipit-source-id: cd84ef62094ffd8f90922d304ebd911f3b36f469 --- src/utils/exportData.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/exportData.js b/src/utils/exportData.js index ebf7626c8..7a107431f 100644 --- a/src/utils/exportData.js +++ b/src/utils/exportData.js @@ -211,7 +211,11 @@ export async function fetchMetadata( const clients = store.getState().connections.clients; const selectedDevice = store.getState().connections.selectedDevice; for (let client of clients) { - if (!selectedDevice || !client.id.includes(selectedDevice.serial)) { + if ( + !selectedDevice || + selectedDevice.isArchived || + !client.id.includes(selectedDevice.serial) + ) { continue; } for (let plugin of client.plugins) {