소스 검색

Removed unnecessary statement.

ubhatnagar 10 년 전
부모
커밋
9cdf0601eb
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      public/app/features/templating/editorCtrl.js

+ 0 - 1
public/app/features/templating/editorCtrl.js

@@ -99,7 +99,6 @@ function (angular, _) {
     $scope.duplicate = function(variable) {
       $scope.current = angular.copy(variable);
       $scope.variables.push($scope.current);
-      $scope.current = $scope.variables[$scope.variables.length - 1];
       $scope.current.name = 'copy_of_'+variable.name;
       $scope.updateSubmenuVisibility();
     };