Skip to content

Commit

Permalink
resolve pods on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Oct 31, 2017
1 parent 7398e85 commit c334e3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/ui/src/components/configuration-pane/PodsPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class PodsPane extends React.Component {
super(props)
this.state = {
nodeName: props.node.metadata.name,
pods: this.resolvePods(props.resources, props.node.metadata.name),
actionsOpen: false,
deleteOpen: false,
hoveredRow: -1,
Expand Down Expand Up @@ -190,7 +189,12 @@ class PodsPane extends React.Component {
]) {
this[fn] = this[fn].bind(this)
}
props.requestResources()
}

componentDidMount = () => {
this.setState({
pods: this.resolvePods(this.props.resources, this.props.node.metadata.name),
})
}

renderCell = (column, row) => {
Expand Down

0 comments on commit c334e3c

Please sign in to comment.