Просмотр исходного кода

fix(alerting): fixed reducer change issue, fixes #6241

Torkel Ödegaard 9 лет назад
Родитель
Сommit
1b8a81d4ba
1 измененных файлов с 3 добавлено и 5 удалено
  1. 3 5
      public/app/core/components/query_part/query_part_editor.ts

+ 3 - 5
public/app/core/components/query_part/query_part_editor.ts

@@ -128,11 +128,9 @@ export function queryPartEditorDirective($compile, templateSrv) {
       }
 
       $scope.showActionsMenu = function() {
-        if ($scope.partActions.length === 0) {
-          $scope.handleEvent({$event: {name: 'get-part-actions'}}).then(res => {
-            $scope.partActions = res;
-          });
-        }
+        $scope.handleEvent({$event: {name: 'get-part-actions'}}).then(res => {
+          $scope.partActions = res;
+        });
       };
 
       $scope.triggerPartAction = function(action) {