Skip to content

Commit e498968

Browse files
committed
updated
1 parent 61d905e commit e498968

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

public/app/features/panel/panelDirective.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
define([
22
'angular',
33
'jquery',
4-
'config',
54
],
6-
function (angular, $, config) {
5+
function (angular, $) {
76
'use strict';
87

98
var module = angular.module('grafana.directives');
@@ -13,7 +12,6 @@ function (angular, $, config) {
1312
restrict: 'E',
1413
link: function(scope, elem, attr) {
1514
var getter = $parse(attr.type), panelType = getter(scope);
16-
var panelPath = config.panels[panelType].path;
1715
var doneFn = function() {
1816
var panelEl = angular.element(document.createElement('grafana-panel-' + panelType));
1917
elem.append(panelEl);
@@ -26,8 +24,8 @@ function (angular, $, config) {
2624
switch(panelType) {
2725
case 'graph': {
2826
require.ensure([], function() {
29-
require('../../panels/graph/module');
30-
doneFn();
27+
require('../../panels/graph/module');
28+
doneFn();
3129
});
3230
break;
3331
}

0 commit comments

Comments
 (0)