Skip to content

Commit

Permalink
Remove unnecessary function in ServiceTabEmptyState
Browse files Browse the repository at this point in the history
  • Loading branch information
iblancof committed Oct 24, 2024
1 parent b373fb2 commit ab15255
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ export function ServiceTabEmptyState({ id, onDismiss }: ServiceTabEmptyStateProp
telemetry.reportLearnMoreClick(defaultClickTelemetryParams);
}

function handleDismiss() {
onDismiss?.();
}

return (
<AddDataPanel
data-test-subj="apmAddApmCallout"
Expand All @@ -69,7 +65,7 @@ export function ServiceTabEmptyState({ id, onDismiss }: ServiceTabEmptyStateProp
onAddData={handleAddAPMClick}
onTryIt={handleTryItClick}
onLearnMore={handleLearnMoreClick}
onDismiss={onDismiss && handleDismiss}
onDismiss={onDismiss}
/>
);
}

0 comments on commit ab15255

Please sign in to comment.