Commit 9f0d7314 by Torkel Ödegaard

fixed unit tests

parent b6a5375a
...@@ -3,15 +3,19 @@ ...@@ -3,15 +3,19 @@
exports[`PickerOption renders correctly 1`] = ` exports[`PickerOption renders correctly 1`] = `
<div> <div>
<div <div
className="description-picker-option__button btn btn-link class-for-user-picker" className="gf-form-select-box__desc-option"
> >
<img <img
alt="User picker label" className="gf-form-select-box__desc-option__img"
className="user-picker-option__avatar"
src="url/to/avatar" src="url/to/avatar"
/> />
<div
className="gf-form-select-box__desc-option__body"
>
<div>
Model title Model title
</div> </div>
</div>
</div>
</div> </div>
`; `;
\ No newline at end of file
...@@ -141,9 +141,10 @@ export class DashboardMigrator { ...@@ -141,9 +141,10 @@ export class DashboardMigrator {
// ensure query refIds // ensure query refIds
panelUpgrades.push(panel => { panelUpgrades.push(panel => {
console.log('asdasd', panel);
_.each(panel.targets, target => { _.each(panel.targets, target => {
if (!target.refId) { if (!target.refId) {
target.refId = panel.getNextQueryLetter(); target.refId = panel.getNextQueryLetter && panel.getNextQueryLetter();
} }
}); });
}); });
......
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