Issue #1915 - Deployment history metadata should be loaded only if deployment history panel is opened (#1916)

This commit is contained in:
Alexander Matyushentsev 2019-07-11 16:01:21 -07:00 committed by Alex Collins
parent 9cf744f435
commit 377fa5532a

View file

@ -268,7 +268,7 @@ export class ApplicationDetails extends React.Component<RouteComponentProps<{ na
selectedResource={syncResourceKey}
/>
<SlidingPanel isShown={this.selectedRollbackDeploymentIndex > -1} onClose={() => this.setRollbackPanelVisible(-1)}>
{<ApplicationDeploymentHistory
{this.selectedRollbackDeploymentIndex > -1 && <ApplicationDeploymentHistory
app={application}
selectedRollbackDeploymentIndex={this.selectedRollbackDeploymentIndex}
rollbackApp={(info) => this.rollbackApplication(info)}