Fix bug that stopped apps from displaying
parent
ae5faecba1
commit
afd636d174
|
@ -1,4 +1,5 @@
|
||||||
import React, {PropTypes} from 'react';
|
import React, {PropTypes} from 'react';
|
||||||
|
import shallowCompare from 'react-addons-shallow-compare';
|
||||||
import {Link} from 'react-router';
|
import {Link} from 'react-router';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
|
|
||||||
|
@ -140,12 +141,13 @@ const HostRow = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
shouldComponentUpdate(nextProps) {
|
shouldComponentUpdate(nextProps) {
|
||||||
return this.props.host !== nextProps.host;
|
return shallowCompare(this, nextProps);
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {host, source} = this.props;
|
const {host, source} = this.props;
|
||||||
const {name, cpu, load, apps = []} = host;
|
const {name, cpu, load, apps = []} = host;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr>
|
||||||
<td className="monotype"><Link to={`/sources/${source.id}/hosts/${name}`}>{name}</Link></td>
|
<td className="monotype"><Link to={`/sources/${source.id}/hosts/${name}`}>{name}</Link></td>
|
||||||
|
|
Loading…
Reference in New Issue