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
This commit is contained in:
Michel Weststrate
2019-12-04 02:53:33 -08:00
committed by Facebook Github Bot
parent d12733f3fd
commit 3dbc9acf54

View File

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