From b2f75435d5cbc66f0bdb866aded3155826c55680 Mon Sep 17 00:00:00 2001 From: Oliver Gupte Date: Sat, 29 Oct 2022 01:01:44 -0400 Subject: [PATCH] change button group to single type --- .../app/service_groups/service_groups_button_group.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 });