From 3dbc9acf543da2305b363d6af3cdce963810b7ea Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Wed, 4 Dec 2019 02:53:33 -0800 Subject: [PATCH] Make sure first client is selected when importing traces Summary: When importing a flipper trace, while the user was on a static view, the first client would not be selected automatically Reviewed By: passy Differential Revision: D18782482 fbshipit-source-id: 6f59e06dead62ffe42acdd36232b92dffd3e30d6 --- src/reducers/connections.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reducers/connections.tsx b/src/reducers/connections.tsx index 8ff145646..4378acff8 100644 --- a/src/reducers/connections.tsx +++ b/src/reducers/connections.tsx @@ -181,6 +181,7 @@ const reducer = (state: State = INITAL_STATE, action: Actions): State => { const {payload} = action; return updateSelection({ ...state, + staticView: null, selectedDevice: payload, userPreferredDevice: payload ? payload.title