Expressions: Fixes dashboard schema migration issue that casued Expression datasource to be set on panel level (#50945)

* Expressions: Fixes dashboard schema migration issue that casued Expression datasource to be set on panel level

* fixing logic

* Updated
This commit is contained in:
Torkel Ödegaard
2022-06-17 08:57:11 +02:00
committed by GitHub
parent ccc587dc0f
commit eb25d8df89
3 changed files with 38 additions and 5 deletions

View File

@@ -345,6 +345,7 @@ describe('given dashboard with repeated panels', () => {
expect(element.model).toEqual({
id: 17,
datasource: { type: 'other2', uid: '$ds' },
targets: [{ refId: 'A', datasource: { type: 'other2', uid: '$ds' } }],
type: 'graph',
});
});