From fc597ba86ead5560f2d4241c3e2359d19ec83127 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 15 Dec 2016 10:41:22 +0000 Subject: [PATCH] Underscore for private method --- src/components/views/directory/NetworkDropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/directory/NetworkDropdown.js b/src/components/views/directory/NetworkDropdown.js index ad49264f..2c0b73ba 100644 --- a/src/components/views/directory/NetworkDropdown.js +++ b/src/components/views/directory/NetworkDropdown.js @@ -253,7 +253,7 @@ export default class NetworkDropdown extends React.Component { ; } - protocolNameForInstanceId(instance_id) { + _protocolNameForInstanceId(instance_id) { for (const proto of Object.keys(this.props.protocols)) { if (!this.props.protocols[proto].instances) continue; for (const instance of this.props.protocols[proto].instances) { @@ -286,7 +286,7 @@ export default class NetworkDropdown extends React.Component { /> } else { if (this.state.selectedInstanceId) { - const protocolName = this.protocolNameForInstanceId(this.state.selectedInstanceId); + const protocolName = this._protocolNameForInstanceId(this.state.selectedInstanceId); const instance = this.instanceForInstanceId(this.state.selectedInstanceId); current_value = this._makeMenuOptionFromProtocolInstance( this.state.selectedServer, this.props.protocols[protocolName], instance