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

This commit is contained in:
Torkel Ödegaard 2021-02-03 15:04:06 +01:00 committed by GitHub
parent 1f66b5c7a9
commit 204252462f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}