SONAR-6331 fix for provisioned project

This commit is contained in:
Stas Vilchik 2015-10-27 15:55:40 +01:00
parent cb9e3a7e2e
commit 476c354d1d

View File

@ -23,7 +23,7 @@ export const Overview = React.createClass({
},
componentDidMount () {
if (this.props.hasSnapshots) {
if (this.props.component.hasSnapshot) {
this.requestMetrics();
}
},
@ -58,7 +58,7 @@ export const Overview = React.createClass({
},
render () {
if (!this.props.hasSnapshots) {
if (!this.props.component.hasSnapshot) {
return <div className="overview"><Empty/></div>;
}