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
This commit is contained in:
Pritesh Nandgaonkar
2019-06-27 06:53:11 -07:00
committed by Facebook Github Bot
parent 0a0aec17ca
commit 43495fa64c

View File

@@ -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) {