diff --git a/x-pack/plugins/apm/public/components/app/service_groups/service_groups_button_group.tsx b/x-pack/plugins/apm/public/components/app/service_groups/service_groups_button_group.tsx index f4be2a0c04358..09a26dd150116 100644 --- a/x-pack/plugins/apm/public/components/app/service_groups/service_groups_button_group.tsx +++ b/x-pack/plugins/apm/public/components/app/service_groups/service_groups_button_group.tsx @@ -38,7 +38,7 @@ type SelectedNavButton = keyof typeof buttonGroupOptions; export function ServiceGroupsButtonGroup({ selectedNavButton, }: { - selectedNavButton: SelectedNavButton | undefined; + selectedNavButton: SelectedNavButton; }) { const history = useHistory(); const { tourEnabled, dismissTour } = useServiceGroupsTour('createGroup'); @@ -60,17 +60,11 @@ export function ServiceGroupsButtonGroup({ > { const { pathname } = buttonGroupOptions[id as SelectedNavButton]; history.push({ pathname });