Skip to content

Commit

Permalink
fix(core/pipeline): Fix configure view state callback for MPT (#4203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reynolds authored Oct 2, 2017
1 parent 215082a commit 70b10ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ module.exports = angular.module('spinnaker.core.pipeline.config.pipelineConfigur

// Poor react setState
this.setViewState = (newViewState) => {
Object.assign($scope.viewState, newViewState);
const viewState = _.clone($scope.viewState);
Object.assign(viewState, newViewState);
$scope.$applyAsync(() => $scope.viewState = viewState);
};

Expand Down

0 comments on commit 70b10ab

Please sign in to comment.