Skip to content

Commit

Permalink
fix(stage): Fixing addAliasToConfig (#6381)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmquach committed Jan 16, 2019
1 parent 286d4ba commit d6548d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ module.exports = angular

this.selectStageType = stage => {
$scope.stage.type = stage.key;
if (stage.addAliasToConfig) {
$scope.stage.alias = stage.alias;
}
this.selectStage();
// clear stage-specific fields
Object.keys($scope.stage).forEach(k => {
Expand Down Expand Up @@ -180,6 +177,9 @@ module.exports = angular
$scope.description = config.description;
$scope.extendedDescription = config.extendedDescription;
$scope.label = config.label;
if (config.addAliasToConfig) {
$scope.stage.alias = config.alias;
}
if (config.defaults) {
defaultsDeep($scope.stage, config.defaults);
}
Expand Down

0 comments on commit d6548d5

Please sign in to comment.