mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
This commit is contained in:
@@ -590,15 +590,6 @@ describe('PanelModel', () => {
|
||||
|
||||
expect(model.getQueryRunner).toBeCalled();
|
||||
});
|
||||
it('when called then it should not call all pending queries if the panel is a row', () => {
|
||||
model.getQueryRunner = jest.fn().mockReturnValue({
|
||||
run: jest.fn(),
|
||||
});
|
||||
model.type = 'row';
|
||||
model.runAllPanelQueries({});
|
||||
|
||||
expect(model.getQueryRunner).not.toBeCalled();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -362,10 +362,6 @@ export class PanelModel implements DataConfigSource, IPanelModel {
|
||||
}
|
||||
|
||||
runAllPanelQueries({ dashboardUID, dashboardTimezone, timeData, width }: RunPanelQueryOptions) {
|
||||
if (this.type === 'row') {
|
||||
return;
|
||||
}
|
||||
|
||||
this.getQueryRunner().run({
|
||||
datasource: this.datasource,
|
||||
queries: this.targets,
|
||||
|
||||
Reference in New Issue
Block a user