Skip to content

Commit

Permalink
fix(core/pipeline): "Depends On" doesn't always update when reverting (
Browse files Browse the repository at this point in the history
  • Loading branch information
jervi authored and Jammy Louie committed Sep 26, 2019
1 parent bd4ba0e commit 67fc87e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -430,7 +430,10 @@ module.exports = angular
this.revertPipelineChanges = () => {
$scope.$applyAsync(() => {
const original = getOriginal();
$scope.pipeline = _.clone(original);
Object.keys($scope.pipeline).forEach(key => {
delete $scope.pipeline[key];
});
Object.assign($scope.pipeline, original);

if ($scope.isTemplatedPipeline) {
const originalRenderablePipeline = getOriginalRenderablePipeline();
Expand Down

0 comments on commit 67fc87e

Please sign in to comment.