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
spinnakerbot authored and louisjimenez committed Sep 26, 2019
1 parent fc7a059 commit 0b3e6e4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,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 0b3e6e4

Please sign in to comment.