mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed unit tests
This commit is contained in:
parent
b6a5375af1
commit
9f0d7314dd
@ -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"
|
||||||
/>
|
/>
|
||||||
Model title
|
<div
|
||||||
|
className="gf-form-select-box__desc-option__body"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
Model title
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user