Explorar o código

Removed unnecessary statement.

ubhatnagar %!s(int64=10) %!d(string=hai) anos
pai
achega
9cdf0601eb
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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();
     };