Handle the Logs when it is undefined

Summary: As per the title

Reviewed By: danielbuechele

Differential Revision: D14131195

fbshipit-source-id: 3b053c04e27de9faa8b8395bf4b0f6fe3d7c58dc
This commit is contained in:
Pritesh Nandgaonkar
2019-02-19 05:26:38 -08:00
committed by Facebook Github Bot
parent 6bdbb4f763
commit 92cc78c41d

View File

@@ -224,7 +224,7 @@ export const importFileToStore = (file: string, store: Store) => {
deviceType,
title,
os,
logs,
logs ? logs : [],
);
const devices = store.getState().connections.devices;
const matchedDevices = devices.filter(