Selaa lähdekoodia

two minor bug fixes introduced in recent refactorings

Torkel Ödegaard 7 vuotta sitten
vanhempi
commit
433c88a616

+ 1 - 1
public/app/features/panel/GeneralTabCtrl.ts

@@ -24,7 +24,7 @@ export class GeneralTabCtrl {
       const panelPropsString = panelPropsToTrack
         .map(prop => prop + '=' + (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel[prop]))
         .join();
-      const panelLinks = panel.links;
+      const panelLinks = panel.links || [];
       const panelLinksString = panelLinks.map(obj2string).join();
       return panelPropsString + panelLinksString;
     };

+ 1 - 1
public/app/features/panel/panellinks/module.ts

@@ -9,7 +9,7 @@ function panelLinksEditor() {
     },
     restrict: 'E',
     controller: 'PanelLinksEditorCtrl',
-    templateUrl: 'public/app/features/dashboard/panellinks/module.html',
+    templateUrl: 'public/app/features/panel/panellinks/module.html',
     link: () => {},
   };
 }