From c68329ae1f9838bfbfe83c210f9c1060185c42c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Jervidalo?= Date: Thu, 26 Sep 2019 15:49:40 +0200 Subject: [PATCH] fix(core/pipeline): Fix revert button for non-templated pipelines (#7440) I accidentally broke this in #7427. Adding the removed line back, but only for non-templated pipelines. --- .../modules/core/src/pipeline/config/pipelineConfigurer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scripts/modules/core/src/pipeline/config/pipelineConfigurer.js b/app/scripts/modules/core/src/pipeline/config/pipelineConfigurer.js index dab7f9e4fbe..7c08d35fa93 100644 --- a/app/scripts/modules/core/src/pipeline/config/pipelineConfigurer.js +++ b/app/scripts/modules/core/src/pipeline/config/pipelineConfigurer.js @@ -446,6 +446,8 @@ module.exports = angular delete $scope.renderablePipeline[key]; } }); + } else { + $scope.renderablePipeline = $scope.pipeline; } // if we were looking at a stage that no longer exists, move to the last stage