Skip to content

Commit

Permalink
Fallback to the default space
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatticha committed Jun 5, 2023
1 parent ef8e17d commit 277b7b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/apm/server/routes/service_groups/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import * as t from 'io-ts';
import { DEFAULT_SPACE_ID } from '@kbn/spaces-plugin/common';
import Boom from '@hapi/boom';
import datemath from '@kbn/datemath';
import { apmServiceGroupMaxNumberOfServices } from '@kbn/observability-plugin/common';
Expand Down Expand Up @@ -186,7 +187,7 @@ const serviceGroupCountsRoute = createApmServerRoute({
apmAlertsClient,
context,
logger,
spaceId: activeSpace?.id,
spaceId: activeSpace?.id ?? DEFAULT_SPACE_ID,
}),
]);
const serviceGroupCounts = serviceGroups.reduce<ServiceGroupCounts>(
Expand Down

0 comments on commit 277b7b1

Please sign in to comment.