From 92cc78c41dd8264551e28c77e93fbf92af7c646c Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 19 Feb 2019 05:26:38 -0800 Subject: [PATCH] Handle the Logs when it is undefined Summary: As per the title Reviewed By: danielbuechele Differential Revision: D14131195 fbshipit-source-id: 3b053c04e27de9faa8b8395bf4b0f6fe3d7c58dc --- src/utils/exportData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exportData.js b/src/utils/exportData.js index 2e6fbd90b..66d7458db 100644 --- a/src/utils/exportData.js +++ b/src/utils/exportData.js @@ -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(