Unifying use of clientID utils
Summary: Fixes a couple of typo's and merges two very similar functions into one. Now that there's a single way to create a clientID, we can get more strict about what it is and what it isn't. Reviewed By: passy Differential Revision: D18809741 fbshipit-source-id: 9a68e45bead38cc2917a6d4cd2cf461c309f3ede
This commit is contained in:
committed by
Facebook Github Bot
parent
e1e2978b19
commit
c95ecf6b3e
@@ -40,7 +40,7 @@ export type State = {
|
||||
androidEmulators: Array<string>;
|
||||
selectedDevice: null | BaseDevice;
|
||||
selectedPlugin: null | string;
|
||||
selectedApp: null | string | undefined;
|
||||
selectedApp: null | string;
|
||||
userPreferredDevice: null | string;
|
||||
userPreferredPlugin: null | string;
|
||||
userPreferredApp: null | string;
|
||||
@@ -229,7 +229,7 @@ const reducer = (state: State = INITAL_STATE, action: Actions): State => {
|
||||
return updateSelection({
|
||||
...state,
|
||||
staticView: null,
|
||||
selectedApp,
|
||||
selectedApp: selectedApp || null,
|
||||
selectedPlugin,
|
||||
userPreferredPlugin: selectedPlugin || state.userPreferredPlugin,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user