mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TestData: Fixes issue with for ever loading state when all queries are hidden (#30861)
This commit is contained in:
parent
1f66b5c7a9
commit
204252462f
@ -86,6 +86,10 @@ export class TestDataDataSource extends DataSourceWithBackend<TestDataQuery> {
|
||||
streams.push(super.query(backendOpts));
|
||||
}
|
||||
|
||||
if (streams.length === 0) {
|
||||
return of({ data: [] });
|
||||
}
|
||||
|
||||
return merge(...streams);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user