Make sure sandy device plugins are rendered
Summary: Now that we can load device plugins, let's make sure they are rendered as well. Reviewed By: passy, nikoant Differential Revision: D22693927 fbshipit-source-id: 22574ec6e629e6dd66e42193b406ceb7dfcf1836
This commit is contained in:
committed by
Facebook GitHub Bot
parent
489dd1521e
commit
b621dcf754
@@ -216,12 +216,21 @@ export async function renderMockFlipperWithPlugin(
|
||||
|
||||
function selectTestPlugin(store: Store, client: Client) {
|
||||
store.dispatch(
|
||||
selectPlugin({
|
||||
selectedPlugin: pluginClazz.id,
|
||||
selectedApp: client.query.app,
|
||||
deepLinkPayload: null,
|
||||
selectedDevice: store.getState().connections.selectedDevice!,
|
||||
}),
|
||||
selectPlugin(
|
||||
isDevicePluginDefinition(pluginClazz)
|
||||
? {
|
||||
selectedPlugin: pluginClazz.id,
|
||||
selectedApp: null,
|
||||
deepLinkPayload: null,
|
||||
selectedDevice: store.getState().connections.selectedDevice!,
|
||||
}
|
||||
: {
|
||||
selectedPlugin: pluginClazz.id,
|
||||
selectedApp: client.query.app,
|
||||
deepLinkPayload: null,
|
||||
selectedDevice: store.getState().connections.selectedDevice!,
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user