Skip to content

Commit

Permalink
Fix agent config props
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Sep 8, 2020
1 parent 21a9b58 commit 0cef279
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import { AgentConfigurationCreateEdit } from '../../../Settings/AgentConfigurati

type EditAgentConfigurationRouteHandler = RouteComponentProps<{}>;

export function EditAgentConfigurationRouteHandler({
history,
}: EditAgentConfigurationRouteHandler) {
const { search } = history.location;
export function EditAgentConfigurationRouteHandler(
props: EditAgentConfigurationRouteHandler
) {
const { search } = props.history.location;

// typescript complains because `pageStop` does not exist in `APMQueryParams`
// Going forward we should move away from globally declared query params and this is a first step
Expand Down Expand Up @@ -45,10 +45,10 @@ export function EditAgentConfigurationRouteHandler({

type CreateAgentConfigurationRouteHandlerProps = RouteComponentProps<{}>;

export function CreateAgentConfigurationRouteHandler({
history,
}: CreateAgentConfigurationRouteHandlerProps) {
const { search } = history.location;
export function CreateAgentConfigurationRouteHandler(
props: CreateAgentConfigurationRouteHandlerProps
) {
const { search } = props.history.location;

// Ignoring here because we specifically DO NOT want to add the query params to the global route handler
// @ts-expect-error
Expand Down

0 comments on commit 0cef279

Please sign in to comment.