Update hosts page optionsComponents to be a getter
parent
e3aaae62b4
commit
eb89268a2f
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue