From d97675f2e6dcc73c5b83dbd21426035021ea7025 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 18 Nov 2019 08:31:34 -0800 Subject: [PATCH] Fix broken export functionality Summary: This fixes a regression bug introduced by the rework sidebar selection: when trying to export a Flipper Trace flipper would error: 'No client exported' after making plugin selection Reviewed By: priteshrnandgaonkar Differential Revision: D18571143 fbshipit-source-id: c7a292e53cb79d0b2d95e09f8e9b041ae0d711cf --- src/utils/exportData.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exportData.tsx b/src/utils/exportData.tsx index 56b0d091c..7125214b2 100644 --- a/src/utils/exportData.tsx +++ b/src/utils/exportData.tsx @@ -469,7 +469,7 @@ export async function getStoreExport( const state = store.getState(); const {clients} = state.connections; const client = clients.find( - client => client.query.app === state.connections.selectedApp, + client => client.id === state.connections.selectedApp, ); const {pluginStates} = state; const {plugins} = state;