Skip to content

Commit

Permalink
fix(core/pipeline): Fixes UX of saving non-templated pipelines (#7437)
Browse files Browse the repository at this point in the history
Previously, a fix for saving Templated pipelines was applied which
removed the assigment of the updated pipeline to 'renderablePipeline'.
this fix re-applies the assignment of the 'renderablepipeline' variable
but only if the pipeline is non-templated.
  • Loading branch information
christopherthielen committed Sep 25, 2019
1 parent 6ccc8cd commit 2b7b60c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ module.exports = angular
$scope.$applyAsync(() => {
$scope.pipeline = _.cloneDeep($scope.pipeline);
_.extend($scope.pipeline, changes);
if (!$scope.isTemplatedPipeline) {
$scope.renderablePipeline = $scope.pipeline;
}
markDirty();
});
};
Expand Down

0 comments on commit 2b7b60c

Please sign in to comment.