Commit 20425246 by Torkel Ödegaard Committed by GitHub

TestData: Fixes issue with for ever loading state when all queries are hidden (#30861)

parent 1f66b5c7
...@@ -86,6 +86,10 @@ export class TestDataDataSource extends DataSourceWithBackend<TestDataQuery> { ...@@ -86,6 +86,10 @@ export class TestDataDataSource extends DataSourceWithBackend<TestDataQuery> {
streams.push(super.query(backendOpts)); streams.push(super.query(backendOpts));
} }
if (streams.length === 0) {
return of({ data: [] });
}
return merge(...streams); return merge(...streams);
} }
......
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