two minor bug fixes introduced in recent refactorings

This commit is contained in:
Torkel Ödegaard 2019-01-29 09:47:41 +01:00
parent 57fe7d5050
commit 433c88a616
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};

View File

@ -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: () => {},
};
}