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:
Andrey Goncharov
2023-03-10 10:00:46 -08:00
committed by Facebook GitHub Bot
parent ccba2fb73e
commit 14795f203b

View File

@@ -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();
}