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:
committed by
Facebook Github Bot
parent
d12733f3fd
commit
3dbc9acf54
@@ -181,6 +181,7 @@ const reducer = (state: State = INITAL_STATE, action: Actions): State => {
|
|||||||
const {payload} = action;
|
const {payload} = action;
|
||||||
return updateSelection({
|
return updateSelection({
|
||||||
...state,
|
...state,
|
||||||
|
staticView: null,
|
||||||
selectedDevice: payload,
|
selectedDevice: payload,
|
||||||
userPreferredDevice: payload
|
userPreferredDevice: payload
|
||||||
? payload.title
|
? payload.title
|
||||||
|
|||||||
Reference in New Issue
Block a user