Commit 433c88a6 by Torkel Ödegaard

two minor bug fixes introduced in recent refactorings

parent 57fe7d50
...@@ -24,7 +24,7 @@ export class GeneralTabCtrl { ...@@ -24,7 +24,7 @@ export class GeneralTabCtrl {
const panelPropsString = panelPropsToTrack const panelPropsString = panelPropsToTrack
.map(prop => prop + '=' + (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel[prop])) .map(prop => prop + '=' + (panel[prop] && panel[prop].toString ? panel[prop].toString() : panel[prop]))
.join(); .join();
const panelLinks = panel.links; const panelLinks = panel.links || [];
const panelLinksString = panelLinks.map(obj2string).join(); const panelLinksString = panelLinks.map(obj2string).join();
return panelPropsString + panelLinksString; return panelPropsString + panelLinksString;
}; };
......
...@@ -9,7 +9,7 @@ function panelLinksEditor() { ...@@ -9,7 +9,7 @@ function panelLinksEditor() {
}, },
restrict: 'E', restrict: 'E',
controller: 'PanelLinksEditorCtrl', controller: 'PanelLinksEditorCtrl',
templateUrl: 'public/app/features/dashboard/panellinks/module.html', templateUrl: 'public/app/features/panel/panellinks/module.html',
link: () => {}, link: () => {},
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment