Stop using device API to clear device logs on disconnected devices
Reviewed By: lblasa Differential Revision: D43979493 fbshipit-source-id: d05450ad4f5e9e1a1336f6a825875d4670725252
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ccba2fb73e
commit
14795f203b
@@ -184,7 +184,9 @@ export function devicePlugin(client: DevicePluginClient) {
|
||||
}
|
||||
|
||||
async function clearLogs() {
|
||||
await client.device.clearLogs();
|
||||
if (client.device.connected.get()) {
|
||||
await client.device.clearLogs();
|
||||
}
|
||||
rows.clear();
|
||||
tableManagerRef.current?.clearSelection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user