From fe5d72d83a155d77cebffff929fe077da73ea4ec Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond <evhan55@gmail.com> Date: Tue, 17 Jul 2018 09:51:11 -0400 Subject: [PATCH] Scanning flag correctly shared from scanning-step container to component. --- src/containers/scanning-step.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/containers/scanning-step.jsx b/src/containers/scanning-step.jsx index ecc193189..035af7400 100644 --- a/src/containers/scanning-step.jsx +++ b/src/containers/scanning-step.jsx @@ -32,7 +32,10 @@ class ScanningStep extends React.Component { 'PERIPHERAL_SCAN_TIMEOUT', this.handlePeripheralScanTimeout); } handlePeripheralScanTimeout () { - this.setState({scanning: false}); + this.setState({ + scanning: false, + deviceList: [] + }); } handlePeripheralListUpdate (newList) { // TODO: sort peripherals by signal strength? so they don't jump around @@ -58,6 +61,7 @@ class ScanningStep extends React.Component { onConnected={this.props.onConnected} onConnecting={this.props.onConnecting} onRefresh={this.handleRefresh} + scanning={this.state.scanning} /> ); } -- GitLab