Skip to content

Commit

Permalink
fix(amazon): use arrow functions in server group modal (spinnaker#6140)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry authored Dec 5, 2018
1 parent 418305c commit 96b8d0e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ export class AmazonCloneServerGroupModal extends React.Component<
this.configureCommand();
};

private onTaskComplete() {
private onTaskComplete = () => {
this.props.application.serverGroups.refresh();
this.props.application.serverGroups.onNextRefresh(null, this.onApplicationRefresh);
}
};

protected onApplicationRefresh(): void {
protected onApplicationRefresh = (): void => {
if (this._isUnmounted) {
return;
}
Expand Down Expand Up @@ -123,7 +123,7 @@ export class AmazonCloneServerGroupModal extends React.Component<
ReactInjector.$state.go(transitionTo, newStateParams);
}
}
}
};

private initializeCommand = () => {
const { command } = this.props;
Expand Down

0 comments on commit 96b8d0e

Please sign in to comment.