Update hosts page optionsComponents to be a getter

pull/10616/head
Delmer Reed 2018-06-22 16:08:17 -04:00
parent e3aaae62b4
commit eb89268a2f
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ export class HostsPage extends Component {
<div className="page hosts-list-page">
<PageHeader
titleText="Host List"
optionsComponents={this.optionsComponents()}
optionsComponents={this.optionsComponents}
sourceIndicator={true}
/>
<div className="page-contents">
@ -137,7 +137,7 @@ export class HostsPage extends Component {
)
}
optionsComponents = () => {
get optionsComponents() {
const {autoRefresh, onChooseAutoRefresh, onManualRefresh} = this.props
return (