We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9013a69 commit c48896dCopy full SHA for c48896d
src/services/data-management/search.service.ts
@@ -30,8 +30,11 @@ export class SearchService {
30
const applicationPromise = this.findApplicationsAndMapType(req, trimmedQuery);
31
const devicePromise = this.findDevicesAndMapType(req, trimmedQuery);
32
33
- const results = _.flatMap(
34
- await Promise.all([applicationPromise, devicePromise, gatewayPromise])
+ const results = _.filter(
+ _.flatMap(
35
+ await Promise.all([applicationPromise, devicePromise, gatewayPromise])
36
+ ),
37
+ x => x != null
38
);
39
40
return {
0 commit comments